SimplePhysics

Simple Physics Node

Constructors

this
this(Node parent)

Constructs a new SimplePhysics node

this
this(GUID guid, Node parent)

Constructs a new SimplePhysics node

Destructor

~this
~this()
Undocumented in source.

Members

Functions

affectsParameter
bool affectsParameter(Parameter param)

Gets whether the given parameter is affected by this driver.

onDefineProperties
void onDefineProperties(PropertyStore propList)

Called when the node is to define its properties.

onDeserialize
void onDeserialize(DataNode object, ModelState state)

Deserializes this node from a DataNode.

onFinalize
void onFinalize(ModelState state)

Called when the node is to finalize its deserialization from disk.

onPreUpdate
void onPreUpdate(DrawList drawList)

Called during the early update phase of a new frame.

onSerialize
void onSerialize(DataNode object)

Serializes this node to a DataNode.

reset
void reset()
Undocumented in source. Be warned that the author may not have intended to support it.
updateAnchors
void updateAnchors()
Undocumented in source. Be warned that the author may not have intended to support it.
updateDriver
void updateDriver(float delta)
Undocumented in source. Be warned that the author may not have intended to support it.
updateInputs
void updateInputs()
Undocumented in source. Be warned that the author may not have intended to support it.
updateOutputs
void updateOutputs()
Undocumented in source. Be warned that the author may not have intended to support it.

Properties

affectedParameters
Parameter[] affectedParameters [@property getter]

The affected parameters of the driver.

finalAngleDamping
float finalAngleDamping [@property getter]

The final angle damping

finalFrequency
float finalFrequency [@property getter]

The final frequency

finalGravity
float finalGravity [@property getter]

The final gravity

finalLength
float finalLength [@property getter]

The final length

finalLengthDamping
float finalLengthDamping [@property getter]

The final length damping

finalOutputScale
vec2 finalOutputScale [@property getter]

The final output scale

modelType
PhysicsModel modelType [@property getter]

The physics model to apply.

modelType
PhysicsModel modelType [@property setter]
Undocumented in source. Be warned that the author may not have intended to support it.
param
Parameter param [@property getter]

The parameter that the physics system affects.

param
Parameter param [@property setter]
Undocumented in source. Be warned that the author may not have intended to support it.
scale
float scale [@property getter]

Physics scale.

Variables

anchor
vec2 anchor;

Current anchor

angleDamping
float angleDamping;

Angular damping ratio

frequency
float frequency;

Resonant frequency (Hz)

gravity
float gravity;

Gravity scale (1.0 = puppet gravity)

length
float length;

Pendulum/spring rest length (pixels)

lengthDamping
float lengthDamping;

Length damping ratio

localOnly
bool localOnly;

Whether physics system listens to local transform only.

mapMode
ParamMapMode mapMode;

The mapping between physics space and parameter space.

outputScale
vec2 outputScale;

Output scale

prevAnchor
vec2 prevAnchor;

Previous anchor

system
PhysicsSystem system;
Undocumented in source.

Meta