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.
getAngleDamping
float getAngleDamping()

Gets the final angle damping

getDefaultValue
float getDefaultValue(string key)
Undocumented in source. Be warned that the author may not have intended to support it.
getFrequency
float getFrequency()

Gets the final frequency

getGravity
float getGravity()

Gets the final gravity

getLength
float getLength()

Gets the final length

getLengthDamping
float getLengthDamping()

Gets the final length damping

getOutputScale
vec2 getOutputScale()

Gets the final length damping

getScale
float getScale()
Undocumented in source. Be warned that the author may not have intended to support it.
getValue
float getValue(string key)
Undocumented in source. Be warned that the author may not have intended to support it.
hasParam
bool hasParam(string key)
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.
serializeSelfImpl
void serializeSelfImpl(InochiSerializer serializer, bool recursive)

Allows serializing self data (with pretty serializer)

setValue
bool setValue(string key, float value)
Undocumented in source. Be warned that the author may not have intended to support it.
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.
updateAnchors
void updateAnchors()
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

localOnly
bool localOnly;

Whether physics system listens to local transform only.

mapMode
ParamMapMode mapMode;
Undocumented in source.
modelType_
PhysicsModel modelType_;
Undocumented in source.
output
vec2 output;
Undocumented in source.
outputScale
vec2 outputScale;
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.
affectsParameter
bool affectsParameter(Parameter param)
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