PortalObject::SetPortalSize
Defined in:
Configures a portal to be a rectangle of given size.
C4Portals.hPrototype
void SetPortalSize(const Vector2D& size);
Parameters
size |
The portal size. |
Description
The SetPortalSize function sets the portal's vertex count to 4 and sets the vertex positions to be a rectangle having one corner at the origin, width given by the x coordinate of the size parameter, and height given by the y coordinate of the size parameter.
See Also
