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); }
public void SetTargetDelta(Vector3 targetDelta) { ServosManager.Servo_setTargetDelta(Id, targetDelta); }
public void SetTarget(Vector3 target) { ServosManager.Servo_setTarget(Id, target); }