Ejemplo n.º 1
0
        private static VehicleDynamicState GetStateFromInternalState(VehicleInternState internalState)
        {
            var state = new VehicleDynamicState()
            {
                Position        = internalState.Position,
                Rotation        = internalState.Rotation,
                LinearVelocity  = internalState.LinearVelocity,
                AngularVelocity = internalState.AngularVelocity,
                Crashed         = internalState.Crashed,
                IsSleeping      = internalState.IsSleeping,
            };

            return(state);
        }
Ejemplo n.º 2
0
 public static VehicleDynamicState MoveToState(VehicleCommonController controller, VehicleInternState state)
 {
     return(MoveToStateInternal(controller, GetStateFromInternalState(state)));
 }