Hello, i need to make kind of circular motion. I just want to keep the distance between 2 entities and change one's origins. I have no idea how to do such thing.
Are there any functions that could help?
It should be something like this:
PHP Code:
new const Float:fDistance = 500.0;
new Float:Origin1[3], Float:Origin2[3], Float:Origin3[3];
entity_get_vector(ent1, EV_VEC_origin, Origin1);
entity_get_vector(ent2, EV_VEC_origin, Origin2);
/*
Get a line passing both Origin1 and Origin2
Rotate line (sth like 15 degrees for example)
Place Origin3 on that line, in specified distance (fDistance)
*/
If anyone has concept how to do anything from this, I'd be pleased to hear your ideas.
I attach a crazy painting