06.09.2014, 18:53
Hello guys,
I am working on a new thing in SA:MP, but I got stuck in some kind of strange problem.
So, my problem is, I need to find two object's intersection point. Namely there are 2 objects which is getting moved, and I would like to find the intersection (or hit position) of the two objects, if they hit each other.
This is very smiliar to the OnPlayerWeaponShot callback which returns the bullet's impact.
I'll try to explain it with a picture (it's really hard to show a 3D element on a 2D picture):
So the red line shows the object's arrival point and the yellow is the impact of the two objects.
I am working on a new thing in SA:MP, but I got stuck in some kind of strange problem.
So, my problem is, I need to find two object's intersection point. Namely there are 2 objects which is getting moved, and I would like to find the intersection (or hit position) of the two objects, if they hit each other.
This is very smiliar to the OnPlayerWeaponShot callback which returns the bullet's impact.
I'll try to explain it with a picture (it's really hard to show a 3D element on a 2D picture):
So the red line shows the object's arrival point and the yellow is the impact of the two objects.