Exemplo n.º 1
0
 void ValiateRotation(TorqueRotation rotation, Axis axis)
 {
     rotation.rb          = self;
     rotation.maxForce    = maxRotationForce;
     rotation.force       = rotationForce;
     rotation.damper      = rotationDamper;
     rotation.forceMode   = forceMode;
     rotation.followStyle = TorqueRotation.FollowStyle.MatchTarget;
     rotation.alignAxis   = axis;
 }