CConstrainHprInterval

from panda3d.direct import CConstrainHprInterval
class CConstrainHprInterval

Bases:

Bases: CConstraintInterval

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

Inheritance diagram

Inheritance diagram of CConstrainHprInterval

__init__(param0: CConstrainHprInterval)
__init__(name: str, duration: float, node: panda3d.core.NodePath, target: panda3d.core.NodePath, wrt: bool, hprOffset: panda3d.core.LVecBase3)

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 get_class_type() panda3d.core.TypeHandle
get_node() panda3d.core.NodePath

Returns the “source” node.

get_target() panda3d.core.NodePath

Returns the “target” node.