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
G
1
Posts: 26
Reputation: 1,146

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
359
S
214
G
72
Posts: 22,949
Reputation: 178,544


Return to Construct 2 General

Who is online

Users browsing this forum: 99Instances2Go, blackhornet, shinichild, TRMG and 17 guests