[BEHAVIOR] Chipmunk Physics

Post your completed addons to share with the community

Post » Tue Mar 21, 2017 10:50 pm

can you update the example link please @R0J0hound
Check out my apps:Apple App Store!
B
12
S
5
G
1
Posts: 34
Reputation: 1,538

Post » Wed Mar 22, 2017 8:43 am

BlackFalcon7842 wrote:can you update the example link please @R0J0hound


The link on page 1? Works for me - just tested.
If your vision so exceeds your ability, then look to something closer.
Moderator
B
131
S
29
G
81
Posts: 5,328
Reputation: 56,630

Post » Wed Mar 22, 2017 12:00 pm

I am positive it wasn't working before it is now though @zenox98
Check out my apps:Apple App Store!
B
12
S
5
G
1
Posts: 34
Reputation: 1,538

Post » Wed Mar 22, 2017 4:21 pm

Sorry, I updated it after your post and neglected to reply.
B
91
S
31
G
102
Posts: 5,232
Reputation: 67,250

Post » Fri Apr 14, 2017 2:53 am

Hi Guys, i want to draw a line or any shape and wana to add chipmunk physics behaviour to it (with immovable property no).

eg. if draw a line then it should fall as line with physics behaviour. Pls help for the same.
B
13
S
4
G
1
Posts: 8
Reputation: 1,343

Post » Thu Apr 20, 2017 12:26 am

I'm thinking of using a potentially very large tilemap. Would the chipmunk physics work well with it? Does it parse the nearby tiles, etc?
edit: https://chipmunk-physics.net/release/Ch ... patialHash
found that info. I'm wondering how it applies to tilemaps, considering that tilemaps can have polygons that stretch over multiple tiles, and can get quite big.
B
41
S
19
G
65
Posts: 1,085
Reputation: 37,842

Post » Thu Apr 20, 2017 1:25 am

@prominent
It probably would I imagine. By default chipmunk uses a bounding box tree which seems to work well. That spacial hash in that link isn't implimented in the js library used.

@vikash2k2jsr
There are some discussions about that elsewhere, but best as I understand you may be able to use the polygon plugin to create the arbitrary shape. I've never tried it so I could be mistaken.
B
91
S
31
G
102
Posts: 5,232
Reputation: 67,250

Post » Sat Apr 29, 2017 12:18 am

thanks for reply. if i use polygon plugin and draw object. will i be able to apply chipmunk physics behaviour to it ?
B
13
S
4
G
1
Posts: 8
Reputation: 1,343

Post » Sat Apr 29, 2017 6:41 pm

@vikash2k2jsr
Probably, that's why I mentioned it. I don't think I have the time to install that plugin and try it though.
B
91
S
31
G
102
Posts: 5,232
Reputation: 67,250

Post » Sun May 07, 2017 6:13 pm

Hi @R0J0hound

I tried a little pool / snooker test with both the normal physics and Chipmunk. I set it up so that there are aiming lines to show where the ball goes. My trouble is that on collisions (In both physics) the ball moves different to the direction expected.

My aim line draws a strait line through the center of the white ball and red ball to show the direction it should take on impact. It works when a shot is strait but the greater the angle of the shot, the further away from this line the red ball takes. I noticed that removing friction and playing with elasticity helps but no settings I have found get it working correct.

Do you know if its a limitation of the physics?

Thanks,
B
38
S
11
Posts: 193
Reputation: 3,953

PreviousNext

Return to Completed Addons

Who is online

Users browsing this forum: No registered users and 1 guest