Physics bugs?

For questions about using Classic.

Post » Tue Aug 03, 2010 9:47 am

I'm using the latest version(0.99.92) and the physics seem to be really bugged
First setting sprites to collision ellipse crashes the program
Second the hinge seems to interpret gravity(or some other force) on the left rather then bottom
Third in some strange situation it doesn't even hinge for some reason
Forth when hinged in some situations the physics collide at an offset
Can someone confirm some of this bugs?
Also if it seems to work for you can you try to make an hinged rope example?

http://dl.dropbox.com/u/1027218/phystest.cap

Also I can't search for a common word like physics so if they are other threads about this,I can't see them
B
2
G
4
Posts: 43
Reputation: 1,136

Post » Tue Aug 03, 2010 10:15 am

When i was playing with Minors ragdoll example using 0.99.91 and found that changing the collisions to elliptical cause Construct to crash.

And yes, the physics do act weird.
B
9
S
2
G
4
Posts: 346
Reputation: 2,726

Post » Tue Aug 03, 2010 11:04 am

Same here with v99.91 and v99.92 i have the same problems with physics.The program crashes when i use the eclipse collision.I hope they can fix this. :?
B
22
S
3
G
6
Posts: 1,356
Reputation: 7,141

Post » Tue Aug 03, 2010 11:17 am

It only seems to happen with imported sprites for me.Here is a phys test that seems to work in v99.92 with generic shapes.

[url:2vctf1rt]http://dl.dropbox.com/u/7658043/physicsworking.cap[/url:2vctf1rt]
B
22
S
3
G
6
Posts: 1,356
Reputation: 7,141

Post » Tue Aug 03, 2010 11:31 am

Hmm I see ellipse crashes when hinged
B
2
G
4
Posts: 43
Reputation: 1,136

Post » Tue Aug 03, 2010 11:45 am

I think i solved it , well kind of.Ive changed the linear damping to 100% for all three.Here's the reworked cap.

[url:5yd4c530]http://dl.dropbox.com/u/7658043/workingsortoff.cap[/url:5yd4c530]
B
22
S
3
G
6
Posts: 1,356
Reputation: 7,141

Post » Tue Aug 03, 2010 12:19 pm

[quote="DravenX":3ovxhh4w]I think i solved it , well kind of.Ive changed the linear damping to 100% for all three.Here's the reworked cap.

[url:3ovxhh4w]http://dl.dropbox.com/u/7658043/workingsortoff.cap[/url:3ovxhh4w][/quote:3ovxhh4w]
linear and angle dampening acts like a sort of friction for movement and rotation
You cannot really fix something that is essentially a bug report without going through the C++ code
B
2
G
4
Posts: 43
Reputation: 1,136

Post » Tue Aug 03, 2010 12:38 pm

so file a bug report
Spriter Dev
B
87
S
21
G
12
Posts: 3,240
Reputation: 16,461

Post » Tue Aug 03, 2010 1:10 pm

looks like the physics plugin that's going haywire.I ran a debug and got this.

B
22
S
3
G
6
Posts: 1,356
Reputation: 7,141

Post » Thu Aug 05, 2010 6:25 pm

I found out that when hinged box2d simulates the hinged object with a 90* offset
Most likely the box2d b2RevoluteJoint.cpp
referenceAngle = bodyB->GetAngle() - bodyA->GetAngle();
line causes it
Which means that box2d angles and construct angles aren't synchronized
http://dl.dropbox.com/u/1027218/bug3.cap
Also Stiffness seems to be deprecated as its not used anywhere
B
2
G
4
Posts: 43
Reputation: 1,136

Next

Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 4 guests