multiple players can rotate the water pitcher

This commit is contained in:
Redmond Urbino 2008-01-04 00:02:21 +00:00
parent fa0f621c93
commit 732215ed61
2 changed files with 16 additions and 0 deletions

View File

@ -472,6 +472,21 @@ compute_and_apply_smooth_pos_hpr(NodePath &pos_node, NodePath &hpr_node) {
}
}
////////////////////////////////////////////////////////////////////
// Function: SmoothMover::compute_and_apply_smooth_pos_hpr
// Access: Published
// Description: A further optimization to reduce Python calls. This
// computes the smooth position and applies it to the
// indicated node or nodes in one call. The pos_node
// and hpr_node might be the same NodePath.
////////////////////////////////////////////////////////////////////
INLINE void SmoothMover::
compute_and_apply_smooth_hpr(NodePath &hpr_node) {
if (compute_smooth_position()) {
apply_smooth_hpr(hpr_node);
}
}
////////////////////////////////////////////////////////////////////
// Function: SmoothMover::compute_and_apply_smooth_mat
// Access: Published

View File

@ -107,6 +107,7 @@ PUBLISHED:
INLINE void compute_and_apply_smooth_pos(NodePath &node);
INLINE void compute_and_apply_smooth_pos_hpr(NodePath &pos_node, NodePath &hpr_node);
INLINE void compute_and_apply_smooth_hpr(NodePath &hpr_node);
INLINE void compute_and_apply_smooth_mat(NodePath &node);
INLINE float get_smooth_forward_velocity() const;