Hello, noob here finding weird behavior
I have:
- an object that spawns objects (using a factory) with static collision on mouse click.
- another object with a script that turns gravity back on when I press space (gravity is disabled in init).
- an object with dynamic collision
When I start the game, the object stays in the air until I press space. Then it falls normally, but if I have spawned some of the static collision object before I press space, the object does not fall. Any ideas?
Here is how I turn on gravity:
physics.set_gravity(vmath.vector3(0.0, -2000.0, 0.0))