- Home /
Can I make the player stick to a moving hit point?
Hi, I'm making a third person climbing system climbing system where you can climb monsters like shadow of the collosus or dragons dogma.
Right now my character can climb on wall and around corners, climb from object to object and IKs all work but the character does not follow the object it is climbing if it moves.
You might be about to say just set the character to be the child to the object, but in final project the player will be climbing on animated models, so I will need the player to stay at the point on the surface of the colider.
Is this possible to have the character remember a point on a surface and follow it?
Any help would be appreciated. Thank you.
Answer by aidan7501 · Jul 26, 2018 at 12:59 AM
Maybe try raycasting a point from the player and telling it to move to the hit point.
The problem with that is the object is moving so the raycast hit point will be in front of the player rather than following the motion of the surface.
If you mean raycast to the last point the player was at I think that I would only be able to get the vector3 of the hit point, unless there is a way to store hit point locations relative to the hit point object.
Answer by AdityaViaxor · Jul 26, 2018 at 05:31 AM
in Big games where you climb on monster they actually ask you to press key and when you press key they play animation of climbing and get you direct to player head and then you have to hit him in head or something like that so may be try playing animation.
I already have the climbing set up and animations arent a problem, I can press E and the character will move to the nearest surface within 0.4 meters and enter the climbing state.
The problem I have is that I don't know how to make the character climb on a surface that is moving,
Right now if the surface is moved when the character is on it she will stay hovering in the air where the surface used to be.
Answer by Omerl_ahire · Jul 27, 2018 at 12:31 AM
I have solved the problem.
I just made the player and climb helper be children of whatever object they are climbing.
Answer by AdityaViaxor · Jul 26, 2018 at 12:10 PM
Idea, first of all player will hit boss from ground then after reducing some xps make boss stop so it wont move and your player will climb on it or make a player child of boss so it will move with boss. what do you think??
Your answer
![](https://koobas.hobune.stream/wayback/20220612171537im_/https://answers.unity.com/themes/thub/images/avi.jpg)