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
static createGravity(objects: Tuple<2, PhysicalObject>)

Creates a graviational force

Vector<3>
force()

This method should be overriden to calculate the force at the given instant.

Public Properties


GRAVITATIONAL_CONSTANT PhysicalInteraction.js:27
static GRAVITATIONAL_CONSTANT: number = 1

number

Public Methods


createGravity PhysicalInteraction.js:46
static createGravity(objects: Tuple<2, PhysicalObject>) → {PhysicalInteraction}

Creates a graviational force

Parameters:
Name Type Description
objects Tuple<2, PhysicalObject>
Returns:
Type Description
PhysicalInteraction
force PhysicalInteraction.js:15
force() → {Vector<3>}

This method should be overriden to calculate the force at the given instant.

Returns:
Type Description
Vector<3>

Powered by webdoc!