Up to date
This page is up to date for Godot 4.2
.
If you still find outdated information, please open an issue.
Plane¶
A plane in Hessian normal form.
Description¶
Represents a normalized plane equation. normal is the normal of the plane (a, b, c normalized), and d is the distance from the origin to the plane (in the direction of "normal"). "Over" or "Above" the plane is considered the side of the plane towards where the normal is pointing.
Tutorials¶
Properties¶
|
||
|
||
|
||
|
||
|
Constructors¶
Plane ( ) |
|
Methods¶
distance_to ( Vector3 point ) const |
|
get_center ( ) const |
|
intersect_3 ( Plane b, Plane c ) const |
|
intersects_ray ( Vector3 from, Vector3 dir ) const |
|
intersects_segment ( Vector3 from, Vector3 to ) const |
|
is_equal_approx ( Plane to_plane ) const |
|
is_finite ( ) const |
|
is_point_over ( Vector3 point ) const |
|
normalized ( ) const |
|
Operators¶
operator != ( Plane right ) |
|
operator * ( Transform3D right ) |
|
operator == ( Plane right ) |
|
operator unary+ ( ) |
|
operator unary- ( ) |
Constants¶
PLANE_YZ = Plane(1, 0, 0, 0)
A plane that extends in the Y and Z axes (normal vector points +X).
PLANE_XZ = Plane(0, 1, 0, 0)
A plane that extends in the X and Z axes (normal vector points +Y).