Hello,
I don't want my ball goes at a greater speed as I set in "AddForce()".
Is this code correct ?
void Update()
{
if (ball.GetComponent().velocity.magnitude > 250.0f)
{
ball.GetComponent().SetMaxAngularVelocity(250.0f);
}
}
↧