- Home /
Character Ragdoll physics on Dirt bike?
Hi, i want to achieve the character lean movement sitting on a bike. like, link text
So far i have achieved it by ragdoll and hinge joints on foot, hands and configurable joint on hips. i also move the hip's configurable joint using it target poisions as below:
if (left) {
hips.targetPosition = Vector3.Lerp (hips.targetPosition, leanBackwardTargetPosition, leanSpeed *
Time.deltaTime); //lean backward
} else if (right) {
hips.targetPosition = Vector3.Lerp (hips.targetPosition, leanForwardTargetPosition, leanSpeed *
Time.deltaTime); //lean forward
}
but its not very realistic and when i jump or drop the bike the character is like still as a statue because of the joints.
I have also tried using animations and IK but its still the same. Any Ideas or tricks or anything that can help.
Thanks in Advance :)
Comment