EDIT: It seems it's a 0.10.2 specific bug, not OS-related bug.
I've found a quite peculiar bug that hopefully someone can help me with.
I have a level, made up of a bunch of rectangle bodies, joined by weld joints, and revolute joint in the middle. Weld joints are represented by red wiggly dots made very carefully in Paint .
Here's how it looks before level's physics are turned on:
Here's how it looks like after physics are turned on, on my Windows partition:
Here's how it looks on my Android tablet and my Arch partition:
As you can clearly see, the bodies on the edges collapse for some reason.
Weld joints are buggy on 0.10.2 [SOLVED]
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
Weld joints are buggy on 0.10.2 [SOLVED]
Last edited by Chroteus on Tue Feb 14, 2017 12:38 pm, edited 3 times in total.
Github: https://github.com/chroteus
Re: Weld joints are buggy on 0.10.1 Linux/Android
That's queer, box2d has no platform-specific code. Can you post a minimal example that reproduces the problem?
Re: Weld joints are buggy on 0.10.1 Linux/Android
Also, can you print the dt's that go into world:update()?
You might be able to fix this by switching to a fixed-update love.run but if that's the case you will probably expose an underlying performance problem in your game.
You might be able to fix this by switching to a fixed-update love.run but if that's the case you will probably expose an underlying performance problem in your game.
Re: Weld joints are buggy on 0.10.1 Linux/Android
That last screenshot looks like the sort of thing that might have happened before reference angle was added to the weld joint constructor. Are you 100% sure these screenshots are all from the same version of Love?
Re: Weld joints are buggy on 0.10.1 Linux/Android
I misunderstood. It's not a bug. It's just that the angle of 0 rad is enforced between two bodies now (default values). Here's how my Weld joint initialization looks like now:
(anchor's positions are repeated, since I connect bodies in one point)
Code: Select all
joint = love.physics.newWeldJoint(bodies[1],bodies[2], x,y,x,y, false, bodies[2]:getAngle()-bodies[1]:getAngle())
Github: https://github.com/chroteus
Who is online
Users browsing this forum: Google [Bot] and 3 guests