Panda3D
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties
Public Member Functions | Static Public Member Functions
CConstrainPosInterval Class Reference

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

Inheritance diagram for CConstrainPosInterval:
CConstraintInterval CInterval

List of all members.

Public Member Functions

 CConstrainPosInterval (string name, double duration, NodePath const node, NodePath const target, bool wrt, VBase3 const posOffset)
 Constructs a constraint interval that will constrain the position of one node to the position of another.
 CConstrainPosInterval (string name, double duration, NodePath const node, NodePath const target, bool wrt)
 Constructs a constraint interval that will constrain the position of one node to the position of another.
NodePath const getNode ()
 Returns the "source" node.
NodePath const getTarget ()
 Returns the "target" node.

Static Public Member Functions

static TypeHandle getClassType ()

Detailed Description

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


Constructor & Destructor Documentation

CConstrainPosInterval ( string  name,
double  duration,
NodePath const  node,
NodePath const  target,
bool  wrt,
VBase3 const  posOffset 
)

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

If wrt is true, the node's position will be transformed into the target node's parent's space before being copied. If wrt is false, the target node's local position will be copied unaltered.

CConstrainPosInterval ( string  name,
double  duration,
NodePath const  node,
NodePath const  target,
bool  wrt 
)

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

If wrt is true, the node's position will be transformed into the target node's parent's space before being copied. If wrt is false, the target node's local position will be copied unaltered.


Member Function Documentation

static TypeHandle getClassType ( ) [static]

Reimplemented from CConstraintInterval.

NodePath const getNode ( )

Returns the "source" node.

NodePath const getTarget ( )

Returns the "target" node.

 All Classes Namespaces Functions Variables Enumerations Enumerator Properties