Question by
Wesley21spelde · Jan 17, 2021 at 02:45 PM ·
addforcedirectionlookrotation
AddForce in look direction?
hey guys i have a problem with my add force i have a missile with a rigidbody on it and a camera look so i clould make it move in the direction i am looking but the missile rotates as i want but it keeps moving one direction and while i look at somthing it does not add force in that direction i testen multiple things but nu luck what is wrong here can annyone please help thanks
rb.AddForce(transform.forward * thrust);
i tried also this
rb.AddRelativeForce(transform.forward * thrust);
rb.AddForce(transform.forward * thrust * Time.deltaTime);
rb.GetComponent<Rigidbody>().AddForce(Vector3.forward * thrust, ForceMode.Impulse);
Comment
Your answer

Follow this Question
Related Questions
i want to add force on object in direction of angle where i want it to move 0 Answers
How to change the direction of a rigidbody without adding to its speed? 1 Answer
Rolling a ball forward with AddForce depending on the track direction 0 Answers