Physics help - one object inside other

Get help using Construct 2

Post » Thu Dec 08, 2011 4:12 pm

Hey dudes I have a physics question:

I want to create 2 physic objects and put one inside the other and still to be influenced by each other.

example file here:
http://dl.dropbox.com/u/6070534/Physics_help.capx

As seen in the preview file
Variant A is pretty ready for the tweak of yours

Variant B is how I solved it so far...open the "set collision polygon" of the Black square to see the trick
I adjusted the polygon shape of the big black square to fake a hole in there.
Only thing I want to avoid is the number of the points in the polygonal colision shape....which might increase rapidly when using some round shapes

Feel free to comment
Cheerstomkuk2011-12-08 16:13:39
B
15
S
5
G
4
Posts: 5
Reputation: 3,600

Post » Fri Dec 09, 2011 3:42 am

pretty smart way of doing it, i think you got the best solution, a little improvement could be if we could merge points and i also hope for a way of setting a circle collision mask per frame, i think it uses an optimised calculation instead of just drawn out points
ImageImage
B
66
S
19
G
7
Posts: 815
Reputation: 9,718

Post » Fri Dec 09, 2011 4:08 am

@vtrix: this option is already available in the properties of the physic behavior : "Collision mask" - "Circle"
New to Construct ? Where to start

Image Image

Image Image

Please attach a capx to any help request or bug report !
Moderator
B
270
S
98
G
70
Posts: 7,266
Reputation: 75,632

Post » Fri Dec 09, 2011 11:58 am

yes but i mean per frame, like you can select box collision per frame
ImageImage
B
66
S
19
G
7
Posts: 815
Reputation: 9,718


Return to How do I....?

Who is online

Users browsing this forum: Fib, imhotep22, raulcg1981, shukra, sickboysid, Yahoo [Bot] and 2 guests