Difference between revisions of "Talk:SetPos"
Jump to navigation
Jump to search
m
no edit summary
imported>DragoonWraith (→How to avoid Wall/Ceiling Collisions: invisible projectile maybe?) |
imported>8asrun6aer m |
||
Line 68: | Line 68: | ||
: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. | :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. | ||
:: For Player flying at least, I tested jumping (or triggering a jump), and while in the air, holding and adjusting only the Z position. Though somewhat glitchy and requiring a jump move first, it works for flying as collisions with walls still register while allowing you to move forward/back/strafe in-air. Combined with hints from [[Determining_Ground_Position]], it effectively prevents moving through the ground and through walls... just not the ceiling. Still, hopefully there's a better, more simple way. --[[User:8asrun6aer|8asrun6aer]] 2011-12-22 |