CharacterJoint¶
-
class CharacterJoint¶
Bases:
MovingPartMatrixThis represents one joint of the character’s animation, containing an animating transform matrix.
Inheritance diagram
digraph inheritance742818f20b { bgcolor=transparent; rankdir=BT; size="8.0, 12.0"; "CharacterJoint" [URL="acron.core.CharacterJoint.html#acron.core.CharacterJoint",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "MovingPartMatrix" -> "CharacterJoint" [arrowsize=0.75,style=""]; "DTOOL_SUPER_BASE" [fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style=""]; "MovingPartBase" [URL="acron.core.MovingPartBase.html#acron.core.MovingPartBase",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "PartGroup" -> "MovingPartBase" [arrowsize=0.75,style=""]; "MovingPartMatrix" [URL="acron.core.MovingPartMatrix.html#acron.core.MovingPartMatrix",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "MovingPart_ACMatrixSwitchType" -> "MovingPartMatrix" [arrowsize=0.75,style=""]; "MovingPart_ACMatrixSwitchType" [URL="acron.core.MovingPart_ACMatrixSwitchType.html#acron.core.MovingPart_ACMatrixSwitchType",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top"]; "MovingPartBase" -> "MovingPart_ACMatrixSwitchType" [arrowsize=0.75,style=""]; "Namable" [URL="acron.core.Namable.html#acron.core.Namable",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "DTOOL_SUPER_BASE" -> "Namable" [arrowsize=0.75,style=""]; "PartGroup" [URL="acron.core.PartGroup.html#acron.core.PartGroup",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "TypedWritableReferenceCount" -> "PartGroup" [arrowsize=0.75,style=""]; "Namable" -> "PartGroup" [arrowsize=0.75,style=""]; "ReferenceCount" [URL="acron.core.ReferenceCount.html#acron.core.ReferenceCount",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "DTOOL_SUPER_BASE" -> "ReferenceCount" [arrowsize=0.75,style=""]; "TypedObject" [URL="acron.core.TypedObject.html#acron.core.TypedObject",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "DTOOL_SUPER_BASE" -> "TypedObject" [arrowsize=0.75,style=""]; "TypedWritable" [URL="acron.core.TypedWritable.html#acron.core.TypedWritable",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "TypedObject" -> "TypedWritable" [arrowsize=0.75,style=""]; "TypedWritableReferenceCount" [URL="acron.core.TypedWritableReferenceCount.html#acron.core.TypedWritableReferenceCount",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "TypedWritable" -> "TypedWritableReferenceCount" [arrowsize=0.75,style=""]; "ReferenceCount" -> "TypedWritableReferenceCount" [arrowsize=0.75,style=""]; }- CharacterJoint.__init__()¶
For internal use only.
- CharacterJoint.add_local_transform()¶
Adds the indicated node to the list of nodes that will be updated each frame with the joint’s local transform from its parent. Returns true if the node is successfully added, false if it had already been added.
The Character pointer should be the Character object that owns this joint; this will be used to create a
CharacterJointEffectfor this node. If it is NULL, no such effect will be created.A
CharacterJointEffectfor this joint’s Character will automatically be added to the specified node.
- CharacterJoint.add_net_transform()¶
Adds the indicated node to the list of nodes that will be updated each frame with the joint’s net transform from the root. Returns true if the node is successfully added, false if it had already been added.
A
CharacterJointEffectfor this joint’s Character will automatically be added to the specified node.
- CharacterJoint.clear_local_transforms()¶
Removes all nodes from the list of nodes that will be updated each frame with the joint’s local transform from its parent.
- CharacterJoint.clear_net_transforms()¶
Removes all nodes from the list of nodes that will be updated each frame with the joint’s net transform from the root.
- CharacterJoint.get_character()¶
Returns the Character that owns this joint.
- static CharacterJoint.get_class_type()¶
- CharacterJoint.get_local_transforms()¶
Returns a list of the local transforms set for this node. Note that this returns a list of
NodePaths, even though the local transforms are actually a list ofAcronNodes.
- CharacterJoint.get_net_transform()¶
Copies the joint’s current net transform (composed from the root of the character joint hierarchy) into the indicated matrix.
- CharacterJoint.get_net_transforms()¶
Returns a list of the net transforms set for this node. Note that this returns a list of
NodePaths, even though the net transforms are actually a list ofAcronNodes.
- CharacterJoint.get_transform()¶
Returns the transform matrix of the joint
Copies the joint’s current transform into the indicated matrix.
- CharacterJoint.get_transform_state()¶
- CharacterJoint.has_local_transform()¶
Returns true if the node is on the list of nodes that will be updated each frame with the joint’s local transform from its parent, false otherwise.
- CharacterJoint.has_net_transform()¶
Returns true if the node is on the list of nodes that will be updated each frame with the joint’s net transform from the root, false otherwise.
- CharacterJoint.remove_local_transform()¶
Removes the indicated node from the list of nodes that will be updated each frame with the joint’s local transform from its parent. Returns true if the node is successfully removed, false if it was not on the list.
If the node has a
CharacterJointEffectthat matches this joint’s Character, it will be cleared.
- CharacterJoint.remove_net_transform()¶
Removes the indicated node from the list of nodes that will be updated each frame with the joint’s net transform from the root. Returns true if the node is successfully removed, false if it was not on the list.
If the node has a
CharacterJointEffectthat matches this joint’s Character, it will be cleared.