Hello,
I am currently working on an archery game project.
A problem occurred while the project was in progress.
It works well when you shoot a straight arrow
but, If you change the angle and shoot the bow, the arrow will not shoot normally.
I used the code to implement the arrow shooting function.
// Any value
this.entity.rigidbody.applyImpulse(0, 3.7, 18);
this.entity.rigidbody.applyTorque(3, 0, 0);
-
Is there a way to calculate the x-value of applyImpulse according to the angle of the bow?
-
Is there a way to get the angle of the parent Entity and give it relative strength?
Thank you!