# CConstrainTransformInterval¶

class CConstrainTransformInterval

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

Inheritance diagram

explicit CConstrainTransformInterval(std::string const &name, double duration, NodePath const &node, NodePath const &target, bool wrt)
CConstrainTransformInterval(CConstrainTransformInterval const&) = default

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.

static TypeHandle get_class_type(void)
NodePath const &get_node(void) const

Returns the “source” node.

NodePath const &get_target(void) const

Returns the “target” node.