I’m making a soccer game and I want to make it so that a player can kick the ball and when the animation plays a hitbox appears and once the hitbox touches the ball the ball will move forward a bit in the direction the hitboxes front is facing. Anyone know how i would do that?
1 Like
You would need to use KeyFrames in the animation, and then listen to KeyFrameReached for that specific Key where the leg kicks, once it does, check if leg collides with a ball, if so, apply force.
My bad, that one is deprecated, use this one
I already know how the hitbox stuff would work I wanted to figure out how to apply a force the the object anyways I found out how to with ApplyImpulse
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.