SimplePhysics

Simple Physics Node

Constructors

this
this(Node parent)

Constructs a new SimplePhysics node

this
this(uint uuid, Node parent)

Constructs a new SimplePhysics node

Members

Functions

beginUpdate
void beginUpdate()
Undocumented in source. Be warned that the author may not have intended to support it.
deserializeFromFghj
SerdeException deserializeFromFghj(Fghj data)
Undocumented in source. Be warned that the author may not have intended to support it.
drawDebug
void drawDebug()
Undocumented in source. Be warned that the author may not have intended to support it.
finalize
void finalize()
Undocumented in source. Be warned that the author may not have intended to support it.
getAffectedParameters
Parameter[] getAffectedParameters()
Undocumented in source. Be warned that the author may not have intended to support it.
getGravity
float getGravity()
Undocumented in source. Be warned that the author may not have intended to support it.
getScale
float getScale()
Undocumented in source. Be warned that the author may not have intended to support it.
modelType
PhysicsModel modelType()
Undocumented in source. Be warned that the author may not have intended to support it.
modelType
void modelType(PhysicsModel t)
Undocumented in source. Be warned that the author may not have intended to support it.
param
Parameter param()
Undocumented in source. Be warned that the author may not have intended to support it.
param
void param(Parameter p)
Undocumented in source. Be warned that the author may not have intended to support it.
reset
void reset()
Undocumented in source. Be warned that the author may not have intended to support it.
serializeSelf
void serializeSelf(InochiSerializer serializer)

Allows serializing self data (with pretty serializer)

serializeSelf
void serializeSelf(InochiSerializerCompact serializer)

Allows serializing self data (with compact serializer)

typeId
string typeId()
Undocumented in source. Be warned that the author may not have intended to support it.
update
void update()
Undocumented in source. Be warned that the author may not have intended to support it.
updateDriver
void updateDriver()
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.

Variables

anchor
vec2 anchor;
Undocumented in source.
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

mapMode
ParamMapMode mapMode;
Undocumented in source.
modelType_
PhysicsModel modelType_;
Undocumented in source.
output
vec2 output;
Undocumented in source.
outputScale
vec2 outputScale;
Undocumented in source.
rest
vec2 rest;
Undocumented in source.
system
PhysicsSystem system;
Undocumented in source.

Inherited Members

From Driver

beginUpdate
void beginUpdate()
Undocumented in source. Be warned that the author may not have intended to support it.
update
void update()
Undocumented in source. Be warned that the author may not have intended to support it.
getAffectedParameters
Parameter[] getAffectedParameters()
Undocumented in source. Be warned that the author may not have intended to support it.
updateDriver
void updateDriver()
Undocumented in source.
reset
void reset()
Undocumented in source.
drawDebug
void drawDebug()
Undocumented in source. Be warned that the author may not have intended to support it.

Meta