#Add torque

1 messages · Page 1 of 1 (latest)

worldly nova
#

Hello guys is possible to add one torque and then connect all wheels? or should i do 4 different torque and then connect them with one wheel?
i tried but torque lets me to connect with one wheel only..

somber sage
#

You can use a "list (collider)" variable, manually add these 4 colliders in the list and then use "for each" node.

Connect this variable in this node in the 3 white dashes, and then connect body output to addForce.

And connect output item to "this" addForce node.

somber sage
#

In that case, you could add torque using a IF before and use a proper bool.

For example, using physic query "rayCast" down (0, -1, 0) and detect Water instead of Ground layer then stop adding torque. Just as an example. Because you could make certain surfaces activate "slip" effect to the wheels

worldly nova
somber sage
#

Very useful in certain scenarios

somber sage
worldly nova
harsh pewter
worldly nova
#

maybe i have to get list items before i use?

prime meadow
somber sage
#

You could use "list colliders" and thats it. Instead of wherl collider and test if it works

worldly nova
prime meadow
#

The exit triggers when the loop is done, body triggers for every item in the list

worldly nova
somber sage