Scripting / Reference
Physics
Types in the ParelVR.Volt.Physics namespace.
VoltCollision#
ParelVR.Volt.Physics.VoltCollision class
Details of a collision.
VoltCollision properties#
The other collider. Null when it is not part of the world.
The other object.
The impulse the collision applied.
The surface direction at the first point of contact.
The first point of contact.
How fast the two were moving toward each other.
The other rigidbody, if it has one.
VoltPhysics#
ParelVR.Volt.Physics.VoltPhysics static
Queries against the world's colliders. A query can hit a player, but it never hands a script anything that belongs to ParelVR itself: such hits report a point and a distance and nothing else.
VoltPhysics properties#
The world's gravity.
VoltPhysics methods#
Sweeps a box along a ray and reports the nearest hit.
Sweeps a capsule along a ray and reports the nearest hit.
True when any collider overlaps a box.
True when any collider overlaps a capsule.
True when any collider overlaps a sphere.
The mask for one layer, by name. Zero when there is no such layer.
The world colliders that overlap a box. At most 64.
The world colliders that overlap a sphere. At most 64.
The players inside a sphere.
Casts a ray and reports the nearest hit.
Casts a ray against some layers and reports the nearest hit.
True when a ray hits something within a distance.
Casts a ray and reports every hit, nearest first. At most 64 hits.
Sweeps a sphere along a ray and reports the nearest hit.
VoltRaycastHit#
ParelVR.Volt.Physics.VoltRaycastHit class
What a ray or a shape cast hit.
VoltRaycastHit properties#
The collider that was hit. Null when the hit was a player or something outside the world.
Distance from the start of the cast to the hit.
The object that was hit. Null when the hit was a player or something outside the world.
The direction the surface faces at the hit.
The player that was hit, or null.
Where the hit happened, in world space.
The transform that was hit.
