How to move an object with a rigidbody attached?

Tonight I’ve been learning how to use Haxe scripts in Armory, opposed to logic nodes. All is going well except I’m not sure how to move an object with a rigidbody attached.

Translate doesn’t seem to work with physic objects. So I found applyImpulse() in the manual, but I can’t seem to figure out how to import it in to use. Everything I tried didn’t work. What am I doing wrong?

Set rigibody to passive and click animate button in physic tab.

2 Likes

EDIT: I found my solution in the SimpleMoveObject script.

1 Like