PhysicalInteraction
class PhysicalInteraction
A physical interaction is a force causes object positions to be re-evaulated each frame based on force's magnitude.
Summary
Properties from PhysicalInteraction
Methods from PhysicalInteraction
PhysicalInteraction |
Creates a graviational force |
Vector<3> |
This method should be overriden to calculate the force at the given instant. |
Public Properties
static GRAVITATIONAL_CONSTANT: number = 1
number
Public Methods
static createGravity(objects: Tuple<2, PhysicalObject>) → {PhysicalInteraction}
Creates a graviational force
Name | Type | Description |
---|---|---|
objects | Tuple<2, PhysicalObject> |
Type | Description |
---|---|
PhysicalInteraction |
force() → {Vector<3>}
This method should be overriden to calculate the force at the given instant.
Type | Description |
---|---|
Vector<3> |