Changing force (Pointer to Force)

Official forum for the Chipmunk2D Physics Library.
Post Reply
kubas121
Posts: 1
Joined: Sat Jul 05, 2014 6:14 am
Contact:

Changing force (Pointer to Force)

Post by kubas121 »

Can I have pointer to force? like for gravity?

I want to simulate "wind tunnel" where object in front of other object has higher wind resistance applied.
If one object outruns another the force changes.

I could achieve this by applying "difference" of the previous force and current:
cpBodyApllyForce(cpv(previouswindForce - currWindForce),cpv(0,0))
I havent tried it yet but it seemed like a dirty solution.
It would be really cool if I could have a pointer to force like with gravity.
Post Reply

Who is online

Users browsing this forum: No registered users and 15 guests