[BEHAVIOR] Chipmunk Physics

Post your completed addons to share with the community

Post » Wed Feb 18, 2015 12:53 pm

B
27
S
12
G
1
Posts: 157
Reputation: 3,359

Post » Wed Feb 18, 2015 5:55 pm

@Leaufai
One way to do the front shock is with a groove joint and a spring.
You do not have the required permissions to view the files attached to this post.
B
92
S
32
G
106
Posts: 5,272
Reputation: 69,455

Post » Thu Feb 19, 2015 1:54 am

Thank you both. This will be a good start. I'll let you know if I need any more help.
B
10
S
2
G
1
Posts: 49
Reputation: 693

Post » Sat Feb 21, 2015 11:24 am

hey, I'm trying to work out how to apply force to a position in Chipmunk, any ideas?

Thanks.
B
43
S
13
G
8
Posts: 622
Reputation: 7,392

Post » Sat Feb 21, 2015 11:36 am

When setting the force use polar instead of rect and use the angle() expression to get the angle.
B
92
S
32
G
106
Posts: 5,272
Reputation: 69,455

Post » Sat Feb 21, 2015 12:33 pm

Thanks, sorry I'm being a right idiot today, where do I input the angle expression? I'm having trouble working out how to use stuff like in box2D where I'd say apply force +5 at self.angle +90 for example
B
43
S
13
G
8
Posts: 622
Reputation: 7,392

Post » Sat Feb 21, 2015 12:47 pm

here you go:

EDIT - don't use dt

Untitled.png
You do not have the required permissions to view the files attached to this post.
Last edited by mattb on Sat Aug 01, 2015 5:33 pm, edited 1 time in total.
B
27
S
12
G
1
Posts: 157
Reputation: 3,359

Post » Sat Feb 21, 2015 12:48 pm

oh great thanks @mattb & @R0J0hound
B
43
S
13
G
8
Posts: 622
Reputation: 7,392

Post » Sun Feb 22, 2015 10:59 am

am having trouble trying to re-create a joint from box2D (also I'm stupid). But before I would use "create limited revolute joint" with lower and upper angles of 0 - and that would create a firm, non-flexing or rotating joint between two moving objects at any connecting angle.

box2D

Image

my failure at understanding chipmunk lol

Image

Here's what I'm trying to do:

Image
B
43
S
13
G
8
Posts: 622
Reputation: 7,392

Post » Sun Feb 22, 2015 11:54 am

Actually I think I might have sussed it out.

Image

haha

Image
B
43
S
13
G
8
Posts: 622
Reputation: 7,392

PreviousNext

Return to Completed Addons

Who is online

Users browsing this forum: No registered users and 1 guest