Get XYZ in front of object?
#1

Hello, I have function to find X and Y in front of object, but how do I find Z coordinate according to object's X rotation?
Код:
GetXYInFrontOfObjectl(anid, &Float:ex, &Float:ey, Float:distance)
{
	new Float:ar = Animal[anid][rotZ];
	new Float:unused;
	GetDynamicObjectPos(Animal[anid][anOID], ex, ey, unused);
	ex += (distance * floatsin(-ar, degrees));
	ey += (distance * floatcos(-ar, degrees));
}
Thanks
Reply
#2

https://github.com/AbyssMorgan/ADM/b...SAM/3DTryg.inc
GetPointInFront3D
Reply
#3

Quote:
Originally Posted by AbyssMorgan
Посмотреть сообщение
Thanks a lot!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)