- Home /
Question by
javarsavir · Oct 25, 2021 at 01:05 AM ·
movement script
Hello guys i have a problem I want to get the moving the ball throwing like curve and here's my code please help me I've been stuck this in 6 days. hope you guys help me with my problem.
private void Skill()
{
if(dynamicSkillButton.pressed && isGrounded)
{
// here is the problem
Vector3 shoot = (camTransform.position - controller.transform.position).normalized;
controller.AddForce(shoot * -skill);
isGrounded = false;
}
}
Comment
Your answer
Follow this Question
Related Questions
Touch controls no longer work on movement script,2D movement script not working with mobile touch 0 Answers
How to prevent player from moving in air while jumping in place ?? 0 Answers
MoveTowards is moveing my object to random position when i click it is already on a way 1 Answer