Posts: 310
Threads: 23
Joined: Jul 2010
Reputation:
0
I might have misunderstood something but isn't it just to add the relative position to each coordinate of the object?
Posts: 10,066
Threads: 38
Joined: Sep 2007
Reputation:
0
31.05.2013, 15:00
(
Последний раз редактировалось Vince; 31.05.2013 в 15:00.
Причина: Late
)
I know what he wants to do, but unfortunately I suck at trigonometry so I have no idea how to do this either. The idea is this:
You have a vehicle/object in the game world at a position, let's say 1500.0, 1200.0, 15.0 with angles 0.0, 0.0, 30.0.
Relative to this vehicle/object is an attached object with offset -0.5, 0.25, 0.15 and rotation 0.0, 0.0, 180.0.
Now he wants to know to position of this second object in relation to the world, rather than in relation to its parent vehicle/object.
Posts: 1,052
Threads: 46
Joined: Jan 2010
Reputation:
0
I know some functions of the MathPlugin can do it with vehicles, but it uses the vehicle's rotation matrix instead of it's angles..
(I tried figuring out how he did it in his plugin)