Replies: 1 comment
-
Interestingly, I tried using a state to change gravityScale from 0 to 1, which doesnt work either. But if I use a a very small number like 0.0001 it falls so slow that they basically dont move and if I set it to 1 it fall down. Feels like a very hacky workaround though |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
So I want to create a little isometric sidescroller game. I envisioned drone enemies that just move on the horizontal plane and once you hit them, gravity should be enabled and they should fall to the ground.
im having a hard time to get this working as it should.
So my first idea was to use a state for the RigidBody type prop, and switch it on on a delay to test it. But that doesnt seem to work. Ive found this issue: #314 so it seems like a bug and that this should work.
Any other idea how I could achieve the enabling/disabling of gravity for a RigidBody programmatically?
Beta Was this translation helpful? Give feedback.
All reactions