Page 1 of 1

SetOrigin() doesn't handle interpolation between portals

Posted: Sun Jun 02, 2019 4:23 pm
by Fishytza
I'm not even sure if this is intentional or not so apologies in advance.

Tested with 4.1.2 64bit and g4.2pre-114-g6ba8faa7f 64bit.
Here's a test map with a simple class (zscript) that moves from point to point using SetOrigin(). Load with Doom2 and start a new game. Notice as it crosses the line portal (grass floor) how glitched it appears for a split second. It'll cross back and forth over and over so you can clearly see the effect.
setorigin-portal-test.pk3
Contains MAP01 and a ZScript file
(1.47 KiB) Downloaded 112 times
I am aware of the other thread that seems to describe a similar problem but I decided to make my own because I think SetOrigin() is to blame while the OP of that thread seems to think it's level.Vec3Offset(). My example uses Vec3Angle().