Rot of the pos X, Y, Z MAP
#1

Hi
I want create a system of object, i would any advice.

We can:

put, pose, and placed on the player

But, with the MapAndreas plugin, i can retrieve the pos Z with X, Y pos of the player ?
And, if the soil not flat at the horizontal, can i retrieve the rotation for to place the object correctly ? Otherwise, the object it's at horizontal and the soil it's at 50°... It's not perfect..

At 2:30
https://www.youtube.com/watch?v=UUEz...ature=*********

Thanks
Reply
#2

Help please
Reply
#3

MapAndreas plugin doesnt always give the correct Z float, adding Z-Rot, would be even worse...
Reply
#4

How do then ? But my weapon is half in soil..
Reply
#5

Don't think it can be done. You need at least three points to form a triangle, so you can calculate an angle. For point A, you take the closest node or the location of the weapon (red dot). Once you know point B, you can calculate point C because that one is a right angle. But the question is: how to determine point B? The second closest point may not be on the slope and/or in a totally different direction.

Reply
#6

So, is not possible ? Look this video

At 2:30
https://www.youtube.com/watch?v=UUEz...ature=*********

How have they does ?
Thanks
Reply
#7

This is very possible. (As the video shows...)

I know the maths behind getting all the angles, and it's fairly easy to do. The only problem I'm having trouble working out, is what angles I actually need to find. Didn't Pottus give you a code for this already?? (Despite the whole getdist3d trouble...)
Reply
#8

Yes, Optus gave me a code for this, but don't work.. I hoped someone help me..
Reply
#9

help please
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)