Пример #1
0
        public static CarServo GetServoByBodyPair(CarBody bodyA, CarBody bodyB, bool isLinearVsAngular)
        {
            uint idServo = ServosManager.GetServoBetweenBodiesById(bodyA.Id, bodyB.Id, isLinearVsAngular);

            if (idServo != uint.MaxValue)
            {
                return(listCarServo_.Find(x => (x.Id == idServo)));
            }

            return(null);
        }
Пример #2
0
 public void SetTargetDelta(Vector3 targetDelta)
 {
     ServosManager.Servo_setTargetDelta(Id, targetDelta);
 }
Пример #3
0
 public void SetTarget(Vector3 target)
 {
     ServosManager.Servo_setTarget(Id, target);
 }