# [BEHAVIOR] Chipmunk Physics

### » Wed May 04, 2016 9:53 pm

Is it possible to get a perfect ellipse collision? Tried scaling vertically an object with circle collision shape, but it does not work.
B
34
S
16
G
10
Posts: 285
Reputation: 7,349

### » Thu May 05, 2016 4:12 pm

@Aritz
You'll have to approximate it with a polygon. Both chipmunk and box2d only do circles and polygons.
B
94
S
33
G
125
Posts: 5,458
Reputation: 79,979

### » Thu May 05, 2016 10:18 pm

I supposed that, but thank for the reply!
B
34
S
16
G
10
Posts: 285
Reputation: 7,349

### » Thu May 05, 2016 11:08 pm

I am a bit puzzled here.

I always thought that changing the gravity of one object does not change the gravity of the other objects.
Apparently, it does, change the gravity in one object and you do for all objects.

As shown in this capx:

But i dont really like that idea. I like things to be consequent. Pick an object and the actions run on that object only. After all gravity is no more then a force as all forces.

So i wend to chipmunk.

To my suprise, it does the same.

So i have two question, if that is ok.

1/ Why is it logic that there is only 1 gravity? There is probaly i good reason that i cant find.
2/ Why does the red object in chipmunk waits with falling until it is touched by another physics enabled object ?
B
33
S
18
G
28
Posts: 2,493
Reputation: 20,950

### » Thu May 05, 2016 11:24 pm

@99instances2go
1)
Gravity is an acceleration and is the same for everything so it makes sense to affect everything.

2)
I can't look at the capx but it probably has to do with sleeping. Sleeping is an optimization where if an object stops it can be put in an idle state so calculations don't have to be done on them. It then wakes up if anything moving touches it or you move it. You can adjust how likely objects will fall asleep.
B
94
S
33
G
125
Posts: 5,458
Reputation: 79,979

### » Fri May 06, 2016 6:29 am

ty
B
33
S
18
G
28
Posts: 2,493
Reputation: 20,950

### » Mon May 16, 2016 10:02 am

Guys, hello! What do you think because of the chipmunk may have problems with canvas +? When I pick up on vebviev + everything works fine, but with canvas + Black Screen saver field cocoon. Configure the project as it is necessary, with a black screen topic has already been uvas! But there about chiptyunk neither of which is not written!

Ребята, привет! как вы думаете из-за chipmunk могуть быть проблемы с канвас+ ? Когда я собираю на вебвиев+ все работает отлично, но с канвас+ черный экран поле заставки кокон. Настроил проект так как нужно, тема с черным экраном уже была увас! Но там про чиптюнк ни чего не написано!
B
5
S
1
Posts: 2
Reputation: 391

### » Fri May 27, 2016 1:26 pm

Might there be any chance of us getting angular dampening included in the near future? I know we can manually do it by having an opposing angular force, but it's just nice having it as a feature in box2d.
@bearboxmedia
www.bearboxmedia.com

Nintendo Wii U Developer using Construct 2
B
88
S
16
G
8
Posts: 1,003
Reputation: 11,959

### » Sat May 28, 2016 3:28 am

@rashidbashly
There shouldn't be an issue with canvas+ since this plugin makes no use of drawing. Only js is used. Also I only use html5 and nwjs exports.

@And4d
I probably won't be getting around to this any time soon as I don't have a lot of time lately.
B
94
S
33
G
125
Posts: 5,458
Reputation: 79,979

### » Sun May 29, 2016 2:04 pm

@R0J0hound Ah, I see... Well what you've done is greatly appreciated

I have noted what might be a bug if you're interested. I tried to change an objects mass using runtime, and an error message popped up. Perhaps this isn't a bug, but it seemed strange. I'll need to figure out another way to achieve this effect.
@bearboxmedia
www.bearboxmedia.com

Nintendo Wii U Developer using Construct 2
B
88
S
16
G
8
Posts: 1,003
Reputation: 11,959

PreviousNext