ExternalForce/Impulse not working as expected #500
Labels
A-Dynamics
D-Medium
documentation
Improvements or additions to documentation
P-Medium
S-not-started
Work has not started
Since updating to 0.26,
ExternalForce
andExternalImpulse
do not seem to work correctly for me.I've tried the same code with 0.25 and it works fine there.
As far as I can tell, it has to do with the unit conversion between game and physics world but I'm pretty new here so I don't know for certain.
Oddly enough, gravity still works as expected.
The setup I tested with uses 100 pixels per meter and applies a force to a 100x100 cube.
In 0.25, an impulse of 100 resulted in a velocity of 100 (this seems reasonable, as it should always be game world units being written to impulses/read from velocity from what I understand).
In 0.26, an impulse of 1000000 resulted in a Velocity of 100.
Relevant code snippets:
Adding the plugin and ppm:
Spawning the rigidbody:
Reading the velocity:
If this is a mistake on my end, I would appreciate any help on understanding what I was doing wrong :)
The text was updated successfully, but these errors were encountered: