Skip to content

Spatial Transformation

qouteall edited this page Feb 8, 2021 · 15 revisions

A portal is a window linking to a transformed space. The spacial transformation can be translation, rotation, scale and mirroring.

This mod's teleportation is eye-based. If an entity goes through a portal, it will calculate the entity's eye position transformed by the portal and then place the entity by the transformed eye position.

Rotation Transformation

Commands related to rotation

Teleportation

After crossing a portal with rotation transformation, the player's camera may be tilted. Then the camera rotation will smoothly turn into a valid state.

Scale Transformation

Commands related to scaling

Teleportation

The portal has a property teleportationChangesScale. If it's false, the entities that go through the portal will have the scale remain unchanged. If it's true and Pehkui mod is installed, teleportation will change the entity's scale.

If Pehkui mod is missing or you are using the Forge version, teleportation won't change the entity scale.

Mirror Transformation

Mirrors.

Teleportation

Mirrors do not allow teleportation.