Parkour and Climbing System
A downloadable game for Windows
Parkour system and climbing system using unity with c# programming language. It includes running, jumping, climbing, even crawling.
Controls:
Movement: W,A,S,D.
Climb: Space.
Jump from Wall : F.
Jump From Obstacle: W+Space.
Parkour Jump: Space.
Concepts Used:
- Movement Control: player movement using input from the horizontal and vertical axes. It calculates the movement direction based on the input and rotates the character accordingly.
- Character Controller: The script uses the
CharacterController
component to control the player character's movement and collision detection. - Animation Control: The
Animator
component is used to control the player character's animations based on the movement and actions performed. - Surface Checking: The player character is on a surface using a sphere cast to detect the ground beneath the character.
- Ledge Detection: It includes logic to detect when the player character is on a ledge and adjust movement accordingly.
- Coroutine Usage: Coroutines are used to handle asynchronous actions, such as performing parkour actions over a duration of time, like jumping or climbing.
- Match Target: The
Animator.MatchTarget
function is used to match the player's target position, rotation, and body part during specific actions like climbing or jumping. - Control Management: The script manages player control by enabling or disabling the
CharacterController
component based on the current state of the game. - Animation State Handling: It includes logic to transition between different animation states smoothly and accurately based on player input and actions.
- Raycasting: Raycasting is utilized to detect obstacles and features in the environment. Multiple raycasts are cast in various directions to check for obstacles, ledges, and climbing points.
- Layer Masks: Layer masks are used to filter which objects the raycasts should interact with. This helps in focusing the raycasts on specific layers relevant to obstacles, climbing surfaces, etc.
- Obstacle Detection: Methods to check for obstacles in front of the player using raycasts. It detects both the obstacle itself and the height of the obstacle to determine if the player can interact with it.
- Climbing Detection: Checks for climbing opportunities by casting rays in the direction of potential climbing surfaces. It iterates through multiple rays to cover different positions where climbing might be possible.
- Drop Climb Point Detection: It detects drop climbing points by casting a ray in the direction opposite to the player's forward direction, allowing the player to drop and grab onto a climbable surface.
- Structs: Custom data structures (ObstacleInfo and LedgeInfo) are defined to encapsulate information about detected obstacles, ledges, and climbing points, making it easier to manage and pass around this information.
Status | Released |
Platforms | Windows |
Author | CH PRAVEEN |
Genre | Adventure |
Download
Download
ParkourAndClimbing.zip 168 MB
Leave a comment
Log in with itch.io to leave a comment.