I am working on a throwing knife script, we will throw the knife from our hand and when it touches anywhere the knife will stop and we will calculate the point of view of the sword in our hand with the point we clicked and we will stab the sword correctly (player or BasePart Object).
However, if the player throws the sword just under it, it detects the touch late and stays in the object, the blade is not visible.
Or it senses that the knife is touching, but when we turn it, it stays in the air as if it had never been touched.
It will work perfectly if I find in advance the destination of the object we are moving and place its coordinate on the blade.
but how can i do this?
Knife It should be just like this game:
INFO: I used “BodyForce” to reduce the gravity of the blade,
I used BodyAngularVelocity to rotate the blade,
I used the “Touched” event on the blade to detect if the blade was touched,
The blade moves fast and its speed is always constant,
I adjust the speed by changing the “Velocity” of the blade,
Wherever the player’s mouse clicks, I get the coordinate from there, it falls to an uncertain place with gravity, or the knife hits the moving player.