So I’m trying to make a climbing system like the steam game peak but I’m not sure how to get the player to wrap around object like in the image
1 Like
Raycasting and using the normal to rotate the player i guess:
- Runservice loop that fires a raycast in front of the player
- check if result.instance can be climed (use atrributes), if so set a boolean called isClimbing to true, else to false and set a vector3 called orientation the the raycastresult.normal.
- if it can be climed stop the player from movin (i believe you can disable a part of the corescript or set walkspeed to 0)
- use inputbegan and check if boolean isClimbing is true
- rotate the character using pivotto by using the orientation bool.
- now depending if the player press A, D (left/ right) or W, S(forward/ backward, you can use a bodygyro and apply a force in the direction you want: Making a "Wall Climbing" System - #13 by Shurikanz
2 Likes
Haven’t played Peak at all, but i’m pretty sure you can make a climbing system similar to it by using RopeConstraints, attaching the hand, to the desired position on the wall.
