コード例 #1
0
        public void OnUpdate()
        {
            _vehicle.ApplyEngineForce(EngineForce, 2);
            _vehicle.SetBrake(BreakingForce, 2);
            _vehicle.ApplyEngineForce(EngineForce, 3);
            _vehicle.SetBrake(BreakingForce, 3);

            _vehicle.SetSteeringValue(VehicleSteering, 0);
            _vehicle.SetSteeringValue(VehicleSteering, 1);
        }
コード例 #2
0
        public override void OnUpdate()
        {
            gEngineForce *= (1.0f - FrameDelta);

            vehicle.ApplyEngineForce(gEngineForce, 2);
            vehicle.SetBrake(gBreakingForce, 2);
            vehicle.ApplyEngineForce(gEngineForce, 3);
            vehicle.SetBrake(gBreakingForce, 3);

            vehicle.SetSteeringValue(gVehicleSteering, 0);
            vehicle.SetSteeringValue(gVehicleSteering, 1);

            base.OnUpdate();
        }