Vector3.up does not add enough force to left the base and fly into the sky

Hi Rick,

The function Vector3.up or (0,1,0) does not add enough force to even move the rocket to let the base. If I add (0,2,0) its get enough force and its fly. The question is why it is not flying with Vector3.up ?

note:

  • The rocket has the same transform values for position, rotation and scale, the relative mass as the tutorial.
  • Rocket gameobject it is not selected in the hierarchy.
  • I clicked the game Windows for focus.

please check images below.

Thanks,


Take a look at all of the overrides for Rigidbody.AddForce(). You can choose a ForceMode which will significantly alter the behavior. Vector3.Up is a normalized vector so it can be modified by a float value. In other words, Vector3.Up can be multiplied by a float value to increase the value of Y. Vector3.Up * 2.0f is the same as new Vector3(0.0f, 2.0f, 0.0f).

Here is a link to the API
Rigidbody.AddForce()

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms