CConstrainHprInterval

class CConstrainHprInterval

Bases: CConstraintInterval

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

Inheritance diagram

Inheritance diagram of CConstrainHprInterval

explicit CConstrainHprInterval(std::string const &name, double duration, NodePath const &node, NodePath const &target, bool wrt, LVecBase3 const hprOffset = LVector3::zero())
CConstrainHprInterval(CConstrainHprInterval const&) = default

Constructs a constraint interval that will constrain the orientation of one node to the orientation of another, possibly with an added rotation.

If wrt is true, the node’s orientation will be transformed into the target node’s parent’s space before being copied. If wrt is false, the target node’s local orientation 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.