Big yawn for CocoonJS

Discussion and feedback on Construct 2

Post » Thu Dec 05, 2013 4:39 pm

@thehen

I'm not a mathematician either. However, if I change the size of the object ever so slightly, the whole dynamic appears to change, so I have a feeling it's some kind of calculation, like density combined with the height and width.

No idea though.

If I do it all with the same number, smaller objects move faster than larger objects.
@bearboxmedia
www.bearboxmedia.com

Nintendo Wii U Developer using Construct 2
B
79
S
12
G
7
Posts: 963
Reputation: 10,721

Post » Thu Dec 05, 2013 6:01 pm

FWIW, mass is the density multiplied by the area of the collision polygon, so it would be tricky to work out by hand.
Scirra Founder
B
395
S
232
G
88
Posts: 24,371
Reputation: 193,772

Post » Thu Dec 05, 2013 6:18 pm

@Ashley thanks that's the bit of knowledge that I was missing :)

@AnD4D Assuming the collision polygon and density stays the same, then a static instance variable should work fine as a workaround.
Moderator
B
72
S
14
G
11
Posts: 900
Reputation: 11,920

Post » Fri Dec 06, 2013 8:02 am

@thehen

I'll give it a go, but I have a couple of objects which are affected by mass, and they're not all the same size, so I'll have to have a couple different variables.

It'll take some time to get it sorted, with a lot of trial and error, but I'll see how things go :)
@bearboxmedia
www.bearboxmedia.com

Nintendo Wii U Developer using Construct 2
B
79
S
12
G
7
Posts: 963
Reputation: 10,721

Previous

Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 30 guests