Collision sliding due to gravity issue (& gravity is weak?)
Posted: Tue Oct 25, 2011 1:29 pm
Hi!
I have a simple project set up with a staticmesh and a sphere object for player location. It all works very well (thank you!!) except for a couple of things:
- When the sphere is on a sloped area of the staticmesh, it slides down hill ... as you'd expect. How do I control this? Is there a "stickiness" variable I can set for the sphere which will stop it sliding on surfaces with a shallow angle? (Edit: I found the material property while I was typing this but it's not acting quite how I expected).
- Gravity is a bit odd. I set it to -9.8f which caused the sphere to fall slowly, then -98f which caused it to fall faster then -980f which caused it to fall at a moderate rate. I was expecting the fall rate to increase to a terminal velocity (with air resistance?) or just keep increasing if no air resistance set.
- Bonus! Sorry forgot this for the title: how do I detect when the sphere is "settled" on a surface? I only want the player to be able to jump when on a surface for instance.
Thank you!
I have a simple project set up with a staticmesh and a sphere object for player location. It all works very well (thank you!!) except for a couple of things:
- When the sphere is on a sloped area of the staticmesh, it slides down hill ... as you'd expect. How do I control this? Is there a "stickiness" variable I can set for the sphere which will stop it sliding on surfaces with a shallow angle? (Edit: I found the material property while I was typing this but it's not acting quite how I expected).
- Gravity is a bit odd. I set it to -9.8f which caused the sphere to fall slowly, then -98f which caused it to fall faster then -980f which caused it to fall at a moderate rate. I was expecting the fall rate to increase to a terminal velocity (with air resistance?) or just keep increasing if no air resistance set.
- Bonus! Sorry forgot this for the title: how do I detect when the sphere is "settled" on a surface? I only want the player to be able to jump when on a surface for instance.
Thank you!