mirror of
https://github.com/godotengine/godot.git
synced 2025-01-18 20:40:57 +08:00
Merge pull request #59596 from Calinou/doc-camera-project-ray-normal-origin
This commit is contained in:
commit
a2140c4bf8
@ -88,14 +88,14 @@
|
|||||||
<return type="Vector3" />
|
<return type="Vector3" />
|
||||||
<argument index="0" name="screen_point" type="Vector2" />
|
<argument index="0" name="screen_point" type="Vector2" />
|
||||||
<description>
|
<description>
|
||||||
Returns a normal vector in world space, that is the result of projecting a point on the [Viewport] rectangle by the camera projection. This is useful for casting rays in the form of (origin, normal) for object intersection or picking.
|
Returns a normal vector in world space, that is the result of projecting a point on the [Viewport] rectangle by the inverse camera projection. This is useful for casting rays in the form of (origin, normal) for object intersection or picking.
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="project_ray_origin" qualifiers="const">
|
<method name="project_ray_origin" qualifiers="const">
|
||||||
<return type="Vector3" />
|
<return type="Vector3" />
|
||||||
<argument index="0" name="screen_point" type="Vector2" />
|
<argument index="0" name="screen_point" type="Vector2" />
|
||||||
<description>
|
<description>
|
||||||
Returns a 3D position in world space, that is the result of projecting a point on the [Viewport] rectangle by the camera projection. This is useful for casting rays in the form of (origin, normal) for object intersection or picking.
|
Returns a 3D position in world space, that is the result of projecting a point on the [Viewport] rectangle by the inverse camera projection. This is useful for casting rays in the form of (origin, normal) for object intersection or picking.
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="set_cull_mask_value">
|
<method name="set_cull_mask_value">
|
||||||
|
Loading…
Reference in New Issue
Block a user