#GetObjPosition Question: What's the difference between world and local coordinates?

9 messages · Page 1 of 1 (latest)

civic pond
#

Title.
When should I use world or local coordinates while using the GetObjPosition?

native finch
#

local coordinates are relative to the parent obj, world coordinates are relative to the level

#

i believe i explained to you the relation between parent/child object position and rotation before

#

if all your objects are attached to ROOT only, then local space 0,0 is always the center of the unit

#

world space 0,0 is always bottom left corner of the map

civic pond
#

I see. thanks.

civic pond
native finch
#

well if you place an obj to 0,0 in local pos, it will be the center of your unit.

if you place at 0,0 in world pos, it will get placed in the bottom left of the map. but the obj is still relative to the unit, so if the unit moves, the obj will as well

#

for objs in 98% cases youll probably want local pos unless youre doing some special stuff