2024-02-27 22:22:36 +05:30
|
|
|
# Project On Plane node
|
|
|
|
Projects a vector onto a plane defined by a normal orthogonal to the plane.
|
|
|
|
<hr>
|
|
|
|
|
|
|
|
**Inputs**
|
|
|
|
|Name|Type|Binding|Description|
|
|
|
|
|---|---|---|---|
|
2024-07-03 00:20:02 +05:30
|
|
|
|vector|vector3|none|Vector to project|
|
|
|
|
|plane normal|vector3|none|Normal orthogonal of the plane|
|
2024-02-27 22:22:36 +05:30
|
|
|
|
|
|
|
**Outputs**
|
|
|
|
|Name|Type|Binding|Description|
|
|
|
|
|---|---|---|---|
|
2024-02-27 22:39:14 +05:30
|
|
|
|vector|vector3|None|Output vector|
|
2024-07-03 00:20:02 +05:30
|
|
|
|
|
|
|
**ShaderInc location**
|
|
|
|
<br>`res://addons/ShaderLib/Maths/Vector/ProjectOnPlane.gdshaderinc`
|
|
|
|
|
|
|
|
**Method signature**
|
|
|
|
<br>`vec3 project_on_plane(vec3 vector, vec3 plane_normal)`
|
|
|
|
|
|
|
|
**Parameters**
|
|
|
|
|Name|Type|Description|
|
|
|
|
|---|---|---|
|
|
|
|
|vector|vec3|Input vector|
|
|
|
|
|plane_normal|vec3|Normal vector to the plane|
|
2024-02-27 22:22:36 +05:30
|
|
|
___
|