physics collisions?!

Get help using Construct 2

Post » Wed Dec 21, 2011 12:44 pm

Is it not possible to write collision code for physic objects?..
I dont see any OnCollide() method that gives you access to collision
info, points of contact.. it would also be handy to disable reactions for a physical object and just use the collision data..
B
6
G
2
Posts: 37
Reputation: 1,499

Post » Wed Dec 21, 2011 3:21 pm

Sprite's ordinary 'on collision' event should fire for physics collisions too.
Scirra Founder
B
378
S
219
G
84
Posts: 23,863
Reputation: 187,909

Post » Wed Dec 21, 2011 11:29 pm

Thanks :)

So construct uses the polygon for collisions if one has been defined?.. are default collisions bounding boxes?... or does your system perform some sort of oldschool bitmap logic for pixel collisions?.

anyway, thanks for the feedback :)

B
6
G
2
Posts: 37
Reputation: 1,499

Post » Thu Dec 22, 2011 3:06 am

It depend on the "Collision mask" property of the physic behavior. (Check the properties bar).

If you set it to polygon, it will use the polygon. Or else, it will use the bounding box, or a circle (made out of the collision polygon anyway).
New to Construct ? Where to start

Image Image

Image Image

Please attach a capx to any help request or bug report !
Moderator
B
267
S
95
G
66
Posts: 7,215
Reputation: 73,096


Return to How do I....?

Who is online

Users browsing this forum: QuantumMMX and 12 guests