HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

unit center

10-26-2008, 10:55 PM#1
MaD[Lion]
It seems to be a problem with unit center. Im not sure but somehow the unit center just doesnt look really center to me. is it just me or other people experience this too?
10-26-2008, 11:46 PM#2
Pyrogasm
You mean like the coordiantes (GetUnitX(U), GetUnitY(U))? Or stuff for like shadow center and all that baloney?
10-27-2008, 05:50 AM#3
Jazradel
Visual Centre != Model Centre != Unit X/Y

Please elaborate which centre you're talking about.
10-27-2008, 07:10 AM#4
MaD[Lion]
i mean the visual center compared to unit center. But its strange cus the visual center is not in the center of the selection circle, i though this must be at its center? But when i use GetUnitX/Y i get a weird offset point to right and top (visually).I havent tested throughougly but im using lightning effect from center point to another. and the origin of the lightning isnt center at all... i will retest with special effect and see. maybe its just lightning... but strange thing is this seems to be true tat the center isnt center same with selection circle, cus i try to push a sphere from sinking into terrain for my physic engine, it works nice on 1 side, but the other side it sinks a bit cus of the center is kinda offset. I dont get it the position isnt being changed or anything, just GetUnitX and then apply the lightning i see tat the center isnt center... this is really gay
10-27-2008, 07:58 AM#5
DioD
your units MUST have 0 or 32 collusion size to display effects at unit' center.

other collusion sizes cause some shift.
10-27-2008, 09:10 AM#6
Themis
Quote:
Originally Posted by DioD
your units MUST have 0 or 32 collusion size to display effects at unit' center.

other collusion sizes cause some shift.
I'm not 100% sure about this one, but isn't a small drift created when the collision of a unit is a uneven number?
Also keep in mind that the height of the selection circle can play tricks with your eyes.
If it isn't set to 0, and the unit is ground unit, it will definite play tricks on you.
10-27-2008, 02:57 PM#7
Ammorth
The model itself may not align to it's origin, thus making it appear like the model is shifted from the centre.
10-27-2008, 07:03 PM#8
MaD[Lion]
not talking about model, i base on the circle, cus tats where it is. i will test collision size problem, if it works, i love u :)