|
|
@@ -458,6 +458,16 @@ get_transform() const {
|
|
|
return node()->get_transform();
|
|
|
}
|
|
|
|
|
|
+////////////////////////////////////////////////////////////////////
|
|
|
+// Function: NodePath::clear_transform
|
|
|
+// Access: Published
|
|
|
+// Description: Sets the transform object on this node to identity.
|
|
|
+////////////////////////////////////////////////////////////////////
|
|
|
+INLINE void NodePath::
|
|
|
+clear_transform() {
|
|
|
+ set_transform(TransformState::make_identity());
|
|
|
+}
|
|
|
+
|
|
|
////////////////////////////////////////////////////////////////////
|
|
|
// Function: NodePath::set_transform
|
|
|
// Access: Published
|
|
|
@@ -469,6 +479,18 @@ set_transform(const TransformState *transform) {
|
|
|
node()->set_transform(transform);
|
|
|
}
|
|
|
|
|
|
+////////////////////////////////////////////////////////////////////
|
|
|
+// Function: NodePath::clear_transform
|
|
|
+// Access: Published
|
|
|
+// Description: Sets the transform object on this node to identity,
|
|
|
+// relative to the other node. This effectively places
|
|
|
+// this node at the same position as the other node.
|
|
|
+////////////////////////////////////////////////////////////////////
|
|
|
+INLINE void NodePath::
|
|
|
+clear_transform(const NodePath &other) {
|
|
|
+ set_transform(other, TransformState::make_identity());
|
|
|
+}
|
|
|
+
|
|
|
////////////////////////////////////////////////////////////////////
|
|
|
// Function: NodePath::get_net_transform
|
|
|
// Access: Published
|