Open Asterune
GravityField

GravityField

Applies directional or radial gravity within a bounded region.

Creatable
Instance.new("GravityField")
Inherits
Instance
Replication
Standard

Behavior

GravityField applies directional or radial gravity within a bounded region.

Summary

Members10
Properties8
Methods2

Properties

Additive

GravityField.Additive: boolean = false

Whether this gravity field adds to the existing gravity rather than replacing it.

Direction

GravityField.Direction: Vector3 = Vector3.new(0, -1, 0)

The direction of acceleration applied by this gravity field.

Enabled

GravityField.Enabled: boolean = true

Whether this gravity field is enabled.

Falloff

The distance attenuation applied to the gravity field.

Priority

GravityField.Priority: number = 0

The relative priority used to order or process this object.

Radius

GravityField.Radius: number = 100

The radius of the gravity-field boundary.

Shape

The boundary shape used for this region.

Strength

GravityField.Strength: number = 196.2

The magnitude of the particle attraction.

Methods

GetExecutionGroup

GravityField:GetExecutionGroup(): ExecutionGroup?

Returns this instance if it is an ExecutionGroup. Otherwise returns the nearest ancestor ExecutionGroup, or nil when no group contains the instance.

GetPullAt

GravityField:GetPullAt(position: Vector3): Vector3

Returns this field's gravity contribution at the supplied world-space position.

Inherited members

Inherited47

Instance