[SOLVED] LÖVE 0.8.0 Contact:getSeparation() ?
Posted: Tue Mar 12, 2013 3:12 am
Has Contact:getSeparation() been removed from LÖVE 0.8.0?
It's still in the documentation at https://www.love2d.org/wiki/Contact:getSeparation, but whenever I call it on a Contact returned inside the love.physics callbacks I get the error "attempt to call method 'getSeparation' (a nil value)". Contact:getFriction() works fine and can be found in the LÖVE src. References to Contact:getSeparation was not found in the LÖVE src.
If this was pulled from LÖVE 0.8.0, what's the recommended approach to getting distance between colliders now? love.physics.getDistance(...)?
I've been lurking for about a year now, finding answers to every problem I encounter already answered in the forums or docs. Great/Fun game engine, great community! I hate for this to be the first question I ask on the forums, but ... there it is.
Here's a sneak peak at what I'm working on, in case an offering is required for first-timers ...
It's still in the documentation at https://www.love2d.org/wiki/Contact:getSeparation, but whenever I call it on a Contact returned inside the love.physics callbacks I get the error "attempt to call method 'getSeparation' (a nil value)". Contact:getFriction() works fine and can be found in the LÖVE src. References to Contact:getSeparation was not found in the LÖVE src.
If this was pulled from LÖVE 0.8.0, what's the recommended approach to getting distance between colliders now? love.physics.getDistance(...)?
I've been lurking for about a year now, finding answers to every problem I encounter already answered in the forums or docs. Great/Fun game engine, great community! I hate for this to be the first question I ask on the forums, but ... there it is.
Here's a sneak peak at what I'm working on, in case an offering is required for first-timers ...