void Start()
    {
        rb = GetComponent <Rigidbody>();
        ac = GetComponent <AgentController>();
        pd = GetComponent <PhysicDebugger>();

        rb.centerOfMass = centerOfMass;

        /*
         * height = 50;
         * x_offset = 4;
         * z_offset = 4;
         * angle = 90;
         * z_init_speed = 1;
         * TVCangle = 5.0f;
         * rcs_thurst = 2.5f;
         * engine_thrust = 5000;
         * landing_speed = 5;
         */

        height           = 50;
        init_angle_roll  = 0;
        init_angle_pitch = 0;
        init_xoffset     = 0;
        init_zoffset     = 0;
        init_zspeed      = 0;
        angle_tvc        = 5;
        thrust_engine    = 4000;
        thrust_rcs       = 2.5f;
        collision_speed  = 5;
    }
Beispiel #2
0
    void Start()
    {
        rb   = GetComponent <Rigidbody>();
        ac   = GetComponent <AgentController>();
        pd   = GetComponent <PhysicDebugger>();
        tc   = GetComponent <TextController>();
        anc  = GetComponent <AnimationController>();
        epc  = GetComponent <EngineParticleController>();
        rpc  = GetComponent <RCSParticleController>();
        lspc = GetComponent <LandingSmokeParticleController>();
        erac = GetComponent <EngineRCSAudioController>();

        rb.centerOfMass = centerOfMass;
    }