mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-02 09:52:27 -04:00
multiple players can rotate the water pitcher
This commit is contained in:
parent
fa0f621c93
commit
732215ed61
@ -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
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user