Hello, how can I detect if there are any forces in an objet? ¿Does this.GetComponent().getForce exist?
Do you mean external forces? As if the object is being pushed by another object?
First of all you could always try typing the method you think exists to see if it exists or not…
Like cucci, i’m not sure what are you trying to detect
I mean gravity or when you jump for example
Still not following you, if the char is standing still you want the value output be a Vector 3 (0, -9.81, 0)?
Forces are applied in a number of places, from in your own code, to automatically by the physics engine (such as gravity or on a collision).
In Unity there isn’t a concept of forces being applied all the time, where you could check what forces are being applied right now. A force gets applied, it affects the velocity or rotation of the object (or doesn’t), and that’s it for that force. The force doesn’t stay attached to the object for you to check a list of forces in code.
Ok,thanks