CConstrainPosHprInterval

class CConstrainPosHprInterval

Bases: CConstraintInterval

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

Inheritance diagram

Inheritance diagram of CConstrainPosHprInterval

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

Constructs a constraint interval that will constrain the position and orientation of one node to the position and orientation of another.

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