physics - shape of object

For questions about using Classic.

Post » Thu Aug 04, 2011 6:51 pm

is it possible to make functional a specific shape to physics behavior? i mean i have a ball and when it reacts with other objects i want it to react as a sphere, not as a box. how can i do that?
B
4
S
2
G
1
Posts: 143
Reputation: 1,211

Post » Fri Aug 05, 2011 12:22 am

Yup, just set a custom collision mask in the Physics behaviour properties and then edit the mask. You can draw an outline of your shape then.

For spheres, just choose the collision mask of "Elipse"
"Construct 4 lets YOU make advanced games! (maybe)" Construct Classic - Examples Kit
B
86
S
28
G
13
Posts: 2,092
Reputation: 15,009

Post » Fri Aug 05, 2011 10:38 am

fantastic! thanks much :)
B
4
S
2
G
1
Posts: 143
Reputation: 1,211

Post » Fri Aug 05, 2011 1:43 pm

But always be careful when setting up your own mask. The physic object is fastest with sphere, fast with box and slow to really slow with custom shapes, dependent on the count of points your shape uses. The more the slower.
Image
B
23
S
8
G
10
Posts: 1,820
Reputation: 8,242


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 5 guests