18 TypeHandle CConstrainHprInterval::_type_handle;
31 bool wrt,
const LVecBase3 hprOffset) :
37 _quatOffset.set_hpr(hprOffset);
47 check_started(get_class_type(),
"priv_step");
54 interval_cat.warning()
55 <<
"Unable to copy orientation in CConstrainHprInterval::priv_step;\n" 57 <<
") and target (" << _target.
get_name()
58 <<
") are not in the same graph.\n";
61 _target.
set_quat(_node, _quatOffset);
71 void CConstrainHprInterval::
72 output(std::ostream &out)
const {
73 out << get_name() <<
":";
74 out <<
" dur " << get_duration();
bool is_empty() const
Returns true if the NodePath contains no nodes.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
CConstrainHprInterval(const std::string &name, double duration, const NodePath &node, const NodePath &target, bool wrt, const LVecBase3 hprOffset=LVector3::zero())
Constructs a constraint interval that will constrain the orientation of one node to the orientation o...
void set_quat(const LQuaternion &quat)
Sets the rotation component of the transform, leaving translation and scale untouched.
get_name
Returns the name of the referenced node.
The base class for a family of intervals that constrain some property to a value over time.
LQuaternion get_quat() const
Retrieves the rotation component of the transform.
bool is_same_graph(const NodePath &other, Thread *current_thread=Thread::get_current_thread()) const
Returns true if the node represented by this NodePath is parented within the same graph as that of th...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
virtual void priv_step(double t)
Advances the time on the interval.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
TypeHandle is the identifier used to differentiate C++ class types.
NodePath is the fundamental system for disambiguating instances, and also provides a higher-level int...