[solved] love.physics error

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
User avatar
undef
Party member
Posts: 438
Joined: Mon Jun 10, 2013 3:09 pm
Location: Berlin
Contact:

[solved] love.physics error

Post by undef »

Hey,

I just started dabbling around with love.physics, trying to simulate planet behaviour.
Unfortunately my two objects disappear when they collide, their x and y position becomes nan.

Check out the .love and see for yourself!
(Will print x and y position of both objects in terminal each frame)

Solution:
love.physics.getDistance doesn't get the distance from the center of the body.
Attachments
physicsBug.love
(1.06 KiB) Downloaded 52 times
twitter | steam | indieDB

Check out quadrant on Steam!
Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Bing [Bot] and 64 guests