IGravitasField
Interface in Gravitas namespace
Interface in Gravitas namespace
Represents an implementation of a gravity field that manages and simulates subjects.
Read-Only
The trigger collider defining where this field starts and ends.
Gets or sets the fixed direction of this field, controlling the force of gravitational acceleration.
Read-Only
The GameObject this field implementation is associated with.
Read-Only
The absolute world space angular velocity of this field.
Read-Only
The absolute world space velocity of this field.
Read-Only
The angular velocity of the field relative to its frame of reference.
Read-Only
The velocity of the field relative to its frame of reference.
Read-Only
The center of this gravity field.
Read-Only
The magnitude of acceleration this field exerts on subjects.
The factor to scale the exit boundary collider by when this field produces a local physics scene.
The priority this field should be considered with.
Called when a subject is added to this field using the new subject as the argument.
Called when a subject is removed from this field using the subject as the argument.
Proxies the given subject in this field.
subject The subject to add.
Destroys the given subject's proxy from this field.
subject The subject to destroy.
Enqueues a change to the field's subject to be processed at the next field update.
subject The subject to add or remove.
add Whether to add or remove the subject.
Processes and performs all subject changes for this field.
Performs the startup scan for this field.
Unloads this field's physics scene from memory.
Apply gravitational forces to the subjects in this field.
Updates the simulation of this field's physics scene by the given time step.
timeStep The amount of time to simulate.
Sync positions between all subjects and their proxies.
Gets a collection of colliders used by this field.
Gets the distance multiplier based on a given local position.
localPos The position relative to the field center.
Gets the distance multiplier based on the given normalized distance from the center.
normalizedDistance The normalized distance representing distance from the field center.
Returns whether or not this field is simulating the given subject.
subject The subject to check.