Why Rigidbody.AddrelativeForce() and not Rigidbody.AddForce()?

Why Rigidbody.AddrelativeForce() and not Rigidbody.AddForce()?

Hi,

Welcome to our community! :slight_smile:

In which course and lecture are you? have you already tested the AddForce method?

I’m in the unity 3d course the project boost.

Have you tested the AddForce method?

The AddRelativeForce method applies a force relative to the local axis of the game object. This is relevant when we deal with rotations because, otherwise, we would have to calculate the movement vector ourselves based on the orientation of the game object in the world space.

For further information, please refer to the description in the API:


See also:

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

Privacy & Terms