doc: Sync classref with current source
This commit is contained in:
@@ -107,13 +107,6 @@
|
||||
Returns the collision point at which the ray intersects the closest object. Note: this point is in the [b]global[/b] coordinate system.
|
||||
</description>
|
||||
</method>
|
||||
<method name="get_type_mask" qualifiers="const">
|
||||
<return type="int">
|
||||
</return>
|
||||
<description>
|
||||
Returns the type mask (types of objects to detect) for this ray. The value is a sum (bitwise OR'd) of constants available for [PhysicsDirectSpaceState].
|
||||
</description>
|
||||
</method>
|
||||
<method name="is_colliding" qualifiers="const">
|
||||
<return type="bool">
|
||||
</return>
|
||||
@@ -183,15 +176,6 @@
|
||||
Enables the RayCast2D. Only enabled raycasts will be able to query the space and report collisions.
|
||||
</description>
|
||||
</method>
|
||||
<method name="set_type_mask">
|
||||
<return type="void">
|
||||
</return>
|
||||
<argument index="0" name="mask" type="int">
|
||||
</argument>
|
||||
<description>
|
||||
Set the types of objects to detect. For [code]mask[/code] use a logic sum (OR operation) of constants defined in [PhysicsDirectSpaceState], eg. [code]PhysicsDirectSpaceState.TYPE_MASK_STATIC_BODY | PhysicsDirectSpaceState.TYPE_MASK_KINEMATIC_BODY[/code] to detect only those two types.
|
||||
</description>
|
||||
</method>
|
||||
</methods>
|
||||
<members>
|
||||
<member name="cast_to" type="Vector3" setter="set_cast_to" getter="get_cast_to">
|
||||
@@ -203,13 +187,6 @@
|
||||
<member name="enabled" type="bool" setter="set_enabled" getter="is_enabled">
|
||||
If [code]true[/code], collisions will be reported. Default value: [code]false[/code].
|
||||
</member>
|
||||
<member name="type_mask" type="int" setter="set_type_mask" getter="get_type_mask">
|
||||
Object types to detect using a logical sum (OR operation) of type constants defined in [Physics2DDirectSpaceState].
|
||||
Example:
|
||||
[codeblock]
|
||||
RayCast.type_mask = Physics2DDirectSpaceState.TYPE_MASK_STATIC_BODY | Physics2DDirectSpaceState.TYPE_MASK_KINEMATIC_BODY
|
||||
[/codeblock]
|
||||
</member>
|
||||
</members>
|
||||
<constants>
|
||||
</constants>
|
||||
|
||||
Reference in New Issue
Block a user