Sliding off hills
Posted: Tue Jun 18, 2013 5:01 pm
Hi all, I've been trying to use Chipmunk to make a Tiny Wings style game.
I make static body segments for the hills, and a body for the player.
I apply a small force to the player body so it slides down the hill and over.
This is OK, except the momentum going into the valley carries it slightly off the ground.
I've got an example attached to illustrate.
I want it to stick to the ground all the time, except when I apply a force to jump.
Is this normal for Chipmunk? It works fine in Box2D with similar functions.
Thanks!
--Tyson
I make static body segments for the hills, and a body for the player.
I apply a small force to the player body so it slides down the hill and over.
This is OK, except the momentum going into the valley carries it slightly off the ground.
I've got an example attached to illustrate.
I want it to stick to the ground all the time, except when I apply a force to jump.
Is this normal for Chipmunk? It works fine in Box2D with similar functions.
Thanks!
--Tyson