Difference between revisions of "Talk:SetPos"

Jump to navigation Jump to search
324 bytes added ,  10:06, 22 December 2011
→‎How to avoid Wall/Ceiling Collisions: invisible projectile maybe?
imported>8asrun6aer
m
imported>DragoonWraith
(→‎How to avoid Wall/Ceiling Collisions: invisible projectile maybe?)
Line 66: Line 66:
=How to avoid Wall/Ceiling Collisions=
=How to avoid Wall/Ceiling Collisions=
Basically: how to avoid setting an object/actor's position to inside or beyond a wall or ceiling?  For ground, there's the [[Determining_Ground_Position]] discussion page going on.  But as for walls and ceilings, any hints?
Basically: how to avoid setting an object/actor's position to inside or beyond a wall or ceiling?  For ground, there's the [[Determining_Ground_Position]] discussion page going on.  But as for walls and ceilings, any hints?
:There isn't really a good way. You could maybe try firing an invisible projectile in the desired direction, find it using [[GetFirstRef]], and then following it until it hits a wall? I've thought about doing things like that in theory quite a few times, but I've avoided actually having to try it to see if it would work.

Navigation menu