Which is better
Which is better
Rigidbody.addforce(transform.forward)
Rigidbodh.addrelativeforce
This ia to control fps
About this post
- Posted
- Archived
- Score
- 0 · 50% up
- Kind
- Text
- ID
- i88ujv
Which is better
Rigidbody.addforce(transform.forward)
Rigidbodh.addrelativeforce
This ia to control fps
2 comments
They do the same thing in a different way, its in the name.
Addforce(up) would add a force in the up direction of the world where as addrelativeforce(up) would add force in the up direction of the object your adding the force to (ie if the player was laying down it would move accross the floor in the direction its head is pointing.
Using addforce(transform.up) would be the same as addrelativeforce(vector3.up)
Oh thank you