Getting the rigibody horizontal and vertical speed before added to their position?
Im in alot of troubles with a script of mine im trying to create
Im trying to simulate a pursuing boomerang
I mean adding force or seting rigibody2D speed... easy right?
But the problem is that im trying to simulate the rotation of the boomerang according to their speeds... So on my old Game Engine i had to do all the collision stuff without using any imported scripts... The collision event would work like that: First comes the force set on hsp (horizontal speed) and vsp (vertical speed) and then i would calculate the position of the object + hsp to see if a collision was found and i would do the same with the vsp... then there was a set of calculations to see where the player would land without getting any collisions on that direction... then i would do the rotation based on the hsp and vsp results and after that i would set the object position to new Vector2(position.transform.x + hsp, position.transform.y + vsp)
Now that i have a on this engine a alredy made physics script (rigibody) and i have no how to interfere its inside code how am i supposed to see the supposed variables carrying the object's horizontal and vertical speed before they're added to their positions?
Your answer
![](https://koobas.hobune.stream/wayback/20220612184941im_/https://answers.unity.com/themes/thub/images/avi.jpg)