panda3d.direct.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

__init__(param0: CConstrainPosHprInterval) → None
__init__(name: str, duration: float, node: NodePath, target: NodePath, wrt: bool, posOffset: LVecBase3, hprOffset: LVecBase3) → None

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 getClassType() → TypeHandle
Return type

TypeHandle

getNode() → NodePath

Returns the “source” node.

Return type

NodePath

getTarget() → NodePath

Returns the “target” node.

Return type

NodePath