CLASSES
TagsA - Z

PhysicsGravitationalFieldEvent

Description

class PhysicsGravitationalFieldEvent

Gravitational Field */

Constructor

new PhysicsGravitationalFieldEvent(physicsHelper, scene, origin, radius, strength, falloff)

Parameters

Name Type Description
physicsHelper PhysicsHelper
scene Scene
origin Vector3
radius number
strength number

Methods

getData() PhysicsGravitationalFieldEventData

Returns the data related to the gravitational field event (sphere).

@returns {PhysicsGravitationalFieldEventData}

enable() void

Enables the gravitational field.

disable() void

Disables the gravitational field.

dispose(force) void

Disposes the sphere.

Parameters

Name Type Description
optional force boolean