PhysicalZone
Physical Zones are areas that modify the player's gravity and/or velocity and/or applied force.
Misc
float
Multiply velocity of objects entering zone by this value every tick.
float
Gravity in PhysicalZone. Multiplies against standard gravity.
Point3F
Three-element floating point value representing forces in three axes to apply to objects entering PhysicalZone.
floatList
The polyhedron type is really a quadrilateral and consists of a cornerpoint followed by three vectors representing the edges extending from the corner.
Public Static Attributes
bool
Disables rendering of all instances of this type.
bool
Disables selection of all instances of this type.
bool
If true, a box will render around the location of all PhysicalZones.
Public Functions
void
activate()
Activate the physical zone's effects.
void
Deactivate the physical zone's effects.
Detailed Description
Physical Zones are areas that modify the player's gravity and/or velocity and/or applied force.
The datablock properties determine how the physics, velocity and applied forces affect a player who enters this zone.
new PhysicalZone(Team1JumpPad) { velocityMod = "1";gravityMod = "0"; appliedForce = "0 0 20000"; polyhedron = "0.0000000 0.0000000 0.0000000 1.0000000 0.0000000 0.0000000 0.0000000 -1.0000000 0.0000000 0.0000000 0.0000000 1.0000000"; position = "273.559 -166.371 249.856"; rotation = "0 0 1 13.0216"; scale = "8 4.95 28.31"; isRenderEnabled = "true"; canSaveDynamicFields = "1"; enabled = "1"; };
Misc
float velocityMod
Multiply velocity of objects entering zone by this value every tick.
float gravityMod
Gravity in PhysicalZone. Multiplies against standard gravity.
Point3F appliedForce
Three-element floating point value representing forces in three axes to apply to objects entering PhysicalZone.
floatList polyhedron
The polyhedron type is really a quadrilateral and consists of a cornerpoint followed by three vectors representing the edges extending from the corner.
AFX
PhysicalZone_ForceType forceType
bool orientForce
Public Static Attributes
bool isRenderable
Disables rendering of all instances of this type.
bool isSelectable
Disables selection of all instances of this type.
bool renderZones
If true, a box will render around the location of all PhysicalZones.
Public Functions
activate()
Activate the physical zone's effects.
// Activate effects for a specific physical zone. %thisPhysicalZone.activate();
deactivate()
Deactivate the physical zone's effects.
// Deactivate effects for a specific physical zone. %thisPhysicalZone.deactivate();