How to get coordinates in center of an object?
#3

Unfortunately running GetObjectPos on that specific object ID will return it's cue tip position, instead of the "center" position, so you will have to get the center pos by trial and error, AFAIK that cue stick is about a meter and a half long, so just add ±1,543 divided by 2* to either end of the stick to get position (relatively) in the middle of the pool cue.

* Got that number by measuring, it's not that "precise".

Edit: Use what Mauzen said, works precisely! You have to use trig to get the offsets right, though.
Reply


Messages In This Thread
How to get coordinates in center of an object? - by Hantex. - 30.06.2014, 18:56
Re: How to get coordinates in center of an object? - by Jefff - 30.06.2014, 19:25
Re: How to get coordinates in center of an object? - by Virtual1ty - 30.06.2014, 20:16
Re: How to get coordinates in center of an object? - by Mauzen - 30.06.2014, 20:19
Re : How to get coordinates in center of an object? - by Clad - 30.06.2014, 20:32
Re: How to get coordinates in center of an object? - by Hantex. - 01.07.2014, 09:34
Re: How to get coordinates in center of an object? - by Hantex. - 01.07.2014, 11:48

Forum Jump:


Users browsing this thread: 1 Guest(s)