bjornbytes / lovr

Lua Virtual Reality Framework
https://lovr.org
MIT License
2k stars 138 forks source link

Collider:applyForce does nothing if object is asleep #183

Closed mcclure closed 4 years ago

mcclure commented 4 years ago

In my testing with 0.14b, if you call collider:applyForce on an object which is at total rest, it has no effect. If you call collider:setAwake(true) followed by collider:applyForce, it works.

This suggests to me ODE requires you to wake an object before you expect manually applied forces to do anything.

Expected behavior: We should do one of the following— I don't care which:

bjornbytes commented 4 years ago

Added docs for this.