File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
LowLevel/Sandbox/Assets/Scenes/Benchmark/Spinner Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -76,7 +76,7 @@ private void SetupOptions()
76
76
m_MotorSpeed = evt . newValue ;
77
77
78
78
if ( m_KinematicSpinner )
79
- m_SpinnerBody . angularVelocity = m_MotorSpeed ;
79
+ m_SpinnerBody . angularVelocity = PhysicsMath . ToDegrees ( m_MotorSpeed ) ;
80
80
else
81
81
m_SpinnerHinge . motorSpeed = m_MotorSpeed ;
82
82
} ) ;
@@ -179,7 +179,7 @@ private void SetupScene()
179
179
var bodyDef = new PhysicsBodyDefinition
180
180
{
181
181
bodyType = m_KinematicSpinner ? RigidbodyType2D . Kinematic : RigidbodyType2D . Dynamic ,
182
- angularVelocity = m_KinematicSpinner ? m_MotorSpeed : 0f ,
182
+ angularVelocity = m_KinematicSpinner ? PhysicsMath . ToDegrees ( m_MotorSpeed ) : 0f ,
183
183
position = new Vector2 ( 0f , - 20f ) ,
184
184
sleepingAllowed = false
185
185
} ;
You can’t perform that action at this time.
0 commit comments