Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions godot-core/src/builtin/plane.rs
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,17 @@ impl Plane {
}
}

/// Creates a new `Plane` with default values. This new `Plane` will be invalid.
///
/// _Godot equivalent: `Plane()`_
#[inline]
pub fn invalid() -> Self {
Self {
normal: Default::default(),
d: Default::default(),
}
}

/// Finds the shortest distance between the plane and a point.
///
/// The distance will be positive if `point` is above the plane, and will be negative if
Expand Down