14#ifndef CCONSTRAINPOSINTERVAL_H
15#define CCONSTRAINPOSINTERVAL_H
30 bool wrt,
const LVecBase3 posOffset=LVector3::zero());
36 virtual void output(std::ostream &out)
const;
48 static void init_type() {
49 CConstraintInterval::init_type();
51 CConstraintInterval::get_class_type());
54 return get_class_type();
56 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
CConstrainPosInterval(const std::string &name, double duration, const NodePath &node, const NodePath &target, bool wrt, const LVecBase3 posOffset=LVector3::zero())
Constructs a constraint interval that will constrain the position of one node to the position of anot...
const NodePath & get_target() const
Returns the "target" node.
const NodePath & get_node() const
Returns the "source" node.
virtual void priv_step(double t)
Advances the time on the interval.
NodePath is the fundamental system for disambiguating instances, and also provides a higher-level int...
TypeHandle is the identifier used to differentiate C++ class types.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
void register_type(TypeHandle &type_handle, const std::string &name)
This inline function is just a convenient way to call TypeRegistry::register_type(),...