Difference between revisions of "Talk:SetPos"
Jump to navigation
Jump to search
m
→How to avoid Wall/Ceiling Collisions
imported>DragoonWraith |
imported>DragoonWraith |
||
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. | ||
: | :[[User:DragoonWraith|<span style="font-family: Oblivion; size=2;">D</span>ragoon <span style="font-family: Oblivion; size=2;">W</span>raith]] [[User_talk:DragoonWraith|<span style="font-family: Oblivion; size=2;">TALK</span>]] 11:06, 22 December 2011 (EST) | ||
:: 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, with flight speed dependent on how fast you were running when jumping, 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 | :: 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, with flight speed dependent on how fast you were running when jumping, 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 |