Portals
Portals are generally rigged like this:
Portals (Model) [Portals tag]
|_ Portal [Portal tag]
|_ Portal [Portal tag]
The Portal tag applies effects to the portal, and the Portals tag on the model signifies that the model contains a set of portals. Portals with Transparency=1 will be invisible, and portals with the CanTouch and CanCollide tags set to false will not teleport things. Models and parts with the BlockTeleport tag won’t go through portals.
Portals have a few unique mechanics:
- When something enters the back of a portal, it comes out the front of the other portal. This prevents players from getting stuck behind portals. It also provides some unique setups with the Portal Gun.
- Props retain their relative velocity when entering and exiting a pair of portals.
- When a player enters a portal moving fast enough, their momentum is enabled.
- Exit portals with the
IsFasttag (see Tag Reference) always point the player’s camera to match the direction the player is traveling when exiting the portal. Used only on certain map portals (e.g. the clock tower portal on Cloud Pass)
For a more complete reference on how portals work, see the tag reference.