Ignore input

I’m setting up a fixed-step movement system and I need to disable directional input while the object is transforming - any ideas?

Thanks!

I get a reference to the script which controls my game object, then set the scrips enabled property to false.

not sure if this is what your looking for though.

Hm… in the the 2D gameplay tutorial PlatformerController.js uses a boolean named canControl to set if the character can be controlled or not.

This way falling and being on platforms are still updated correctly, but the player cannot influence the movement.