CConstrainPosHprInterval¶
from panda3d.direct import 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
-
__init__
(param0: CConstrainPosHprInterval)¶
-
__init__
(name: str, duration: float, node: panda3d.core.NodePath, target: panda3d.core.NodePath, wrt: bool, posOffset: panda3d.core.LVecBase3, hprOffset: panda3d.core.LVecBase3) 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
() → panda3d.core.TypeHandle¶
-
getNode
() → panda3d.core.NodePath¶ Returns the “source” node.
-
getTarget
() → panda3d.core.NodePath¶ Returns the “target” node.
-