Paeronskruven
05-12-2010 10:19:59
Hey everyone!
Im building a 3d sidescroller on my spare time with physics.
I have some problems with my character.
My character is built by a capsule representing the body and then I have a ray shooting down to keep him over the ground.
All physics works great in my simulation except for my ray.
When the ray hits the ground its bounces of alittle and keeps my character bouncing forever.
I can solve this with setting a really high mass on my capsule body but that screws up the rest of the simulation.
Also if I remove the ray the capsule goes to the ground without bouncing just like I want it but I need the ray to get the character to be able to walk up stairs and such.
Anyone know what might cause this?
Done alot of searching the forums but havnt found anything so excuse me if I missed it!
Thanks for any help!
/TL
Im building a 3d sidescroller on my spare time with physics.
I have some problems with my character.
My character is built by a capsule representing the body and then I have a ray shooting down to keep him over the ground.
All physics works great in my simulation except for my ray.
When the ray hits the ground its bounces of alittle and keeps my character bouncing forever.
I can solve this with setting a really high mass on my capsule body but that screws up the rest of the simulation.
Also if I remove the ray the capsule goes to the ground without bouncing just like I want it but I need the ray to get the character to be able to walk up stairs and such.
Anyone know what might cause this?
Done alot of searching the forums but havnt found anything so excuse me if I missed it!
Thanks for any help!
/TL