CCD in Box2D

Discussion and feedback on Construct 2

Post » Sat May 26, 2012 10:16 pm

We can enable CCD on physics bodies with
bodydef.bullet = true

Normally it is not advisable to have CCD on dynamic bodies, but there are scenarios where you might want to do that and take the performance hit.

I was having trouble with collisions on fast moving bodies, and that change on my exported javascript solved the problem. I only have two bodies in the whole game so physics performance is hardly an issue.

I think this should be an option in the editor.
B
4
S
1
G
1
Posts: 26
Reputation: 1,296

Post » Sat May 26, 2012 11:35 pm

I'll take a look in to this for the next build, thanks for the suggestion.
Scirra Founder
B
373
S
218
G
84
Posts: 23,563
Reputation: 186,428


Return to Construct 2 General

Who is online

Users browsing this forum: frayt and 9 guests