# panda3d.direct.CConstrainTransformInterval¶

class CConstrainTransformInterval

A constraint interval that will constrain the transform of one node to the transform of another.

Inheritance diagram

__init__(param0: CConstrainTransformInterval) → None
__init__(name: str, duration: float, node: NodePath, target: NodePath, wrt: bool) → None

Constructs a constraint interval that will constrain the transform of one node to the transform of another. To clarify, the transform of node will be copied to target.

If wrt is true, the node’s transform will be transformed into the target node’s parent’s space before being copied. If wrt is false, the node’s local transform will be copied unaltered.

getNode() → NodePath

Returns the “source” node.

Return type

NodePath

getTarget() → NodePath

Returns the “target” node.

Return type

NodePath

static getClassType() → TypeHandle
Return type

TypeHandle