- Home /
[Unity 4.3] 2D physics - SpeedUp Platform/Slope [C#]
Hey all!
I'm currently developing a little 2D Platformer game which involves jumping through a 2D World. My goal is to get the player speed up on Slopes downhill(like 45°) and on specific horizontal "Speed Up" Platforms.
Furthermore I'd like to have the player sliding a lttle bit(in horizontal direction) after getting on the ground after a jump.
I discovered the 2D Physic Materials where I can adjust the Friction and Bounce value from 0 to 1. But the friction property does not deliver the function I was aiming for
I tried to write two little scripts that I attach to colliders where I either speed up the player or have just a little gliding effect after a jump.
For slopes I thought abouth getting the tangent vector the player has according to the surface and speed the rigidbody2d up in the direction of the tangent vector, but I didn't have any idea how to tackle this. Same with the gliding feature..
Do somebody has a little hint or script example where I can go from and investigate further more?
I would be really glad to hear from you guys!
Your answer
Follow this Question
Related Questions
Jumping from special jump orb 1 Answer
HOLD JUMP BUTTON TO JUMP HIGHER 2 Answers
Multiple Cars not working 1 Answer
How do I make a physics based elevator? 2 Answers
Distribute terrain in zones 3 Answers