T
T
Timur Yusupov2019-04-04 17:41:32
Game development
Timur Yusupov, 2019-04-04 17:41:32

AddForce relative to itself on Unity?

How to implement AddForce relative to myself in Unity?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Denis Gaydak, 2019-04-04
@Lolokek

What is the difference between "about oneself" and "something else"?
there is a force vector. in which direction they pushed - it moves there.
if you are talking about "how to push an object "forward" (that is, along its axis) - then it's right there in the documentation.
https://docs.unity3d.com/ScriptReference/Rigidbody...
rb.AddForce(transform.forward * thrust );
in general, then you should either read or describe more precisely what exactly does not work for you)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question