We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b99fe33 + 5d08dae commit 01787a7Copy full SHA for 01787a7
godot-core/src/builtin/plane.rs
@@ -109,6 +109,17 @@ impl Plane {
109
}
110
111
112
+ /// Creates a new `Plane` with default values. This new `Plane` will be invalid.
113
+ ///
114
+ /// _Godot equivalent: `Plane()`_
115
+ #[inline]
116
+ pub fn invalid() -> Self {
117
+ Self {
118
+ normal: Default::default(),
119
+ d: Default::default(),
120
+ }
121
122
+
123
/// Finds the shortest distance between the plane and a point.
124
///
125
/// The distance will be positive if `point` is above the plane, and will be negative if
0 commit comments