- Home /
Parkour Wall run
So guys, as the title kinda explains... I Want to make a Parkour game, FPS. I have tried this before but I couldn't make a Wall run function, so Im asking. How do I make the player go upwards when he hits the Wall or object? I know how to use raycast to detect if looking at and in range, so I only need the upward motion for now at least. I know you Can use the "transform.translate" but that makes the player almost teleport! So how do I make him go up smoothly?
Please help! Thanks!
Did you search "unity3d wall walk"? I did and there are many previous questions, answers, tuts, vids, code snippets etc.
If you are actually implementing something in code, then post it along with the issue.
I haven't searched that exactly, no. But I have tried to find it so many times! For like... 2-3 months, and I haven't found anything! but of course, I will try to search that
Thank you for your answer! :)
Answer by gdubrocks · May 11, 2014 at 05:54 AM
To make anything move smoothly you need to use the Lerp() function. It linearly interpolates (moves slowly) between two points.
https://docs.unity3d.com/Documentation/ScriptReference/Vector3.Lerp.html
I've tried to look a little at the lerp Thing, but it only does the same Thing. Teleport the player. Well at least for me it does. - could you give me an example of the script? That would really be Great! :)
Thanks :D
Answer by VenomDestroyer · Mar 05, 2015 at 05:14 PM
what i did was add a 0.4f delay before it would "teleport" and in that time i have a animation that starts and as soon as it teleport it looks like it realy was pulled up there is a few more lines that let it know that "ClimbAnim" is and "cam" but thats where it tells where to animate and when to wall climb
function Climb()
{
cam.animation.CrossFade(ClimbAnim);
yield WaitForSeconds(0.5f);
Player.transform.position.y = CheckRay.transform.position.y + charCont.height + 0.1;
Player.transform.Translate(0, 0, distanceToGoFwd + 0.3);
Translate = false;
}
function Changing()
{
yield WaitForSeconds(0.3f);
CanParkour = true;
}
Answer by iuripujol · Feb 19, 2018 at 11:26 AM
https://drive.google.com/open?id=14pbaelY8hQM7frhMNYIEkf_DDlds3ub_
This is just a small sample of my work regarding parkour mechanics in FPS (with full body awareness).
Contact me if you need some help: iuripujol@gmail.com.
Your answer
Follow this Question
Related Questions
The name 'Joystick' does not denote a valid type ('not found') 2 Answers
A node in a childnode? 1 Answer
Wall Running/Climbing (no animations) 0 Answers
Movement Script Help 1 Answer
C# Plane Detecting a Gameobject 1 Answer