PhysicsPointQueryParameters3D
Provides parameters for PhysicsDirectSpaceState3D.intersect_point.
Provides parameters for PhysicsDirectSpaceState3D.IntersectPoint.
By changing various properties of this object, such as the point position, you can configure the parameters for PhysicsDirectSpaceState3D.IntersectPoint.
Declarations checked against C# SDK 1.0.0. Expand a name to see declarations and documentation.
Constructors1
PhysicsPointQueryParameters3DConstructor
public PhysicsPointQueryParameters3D();Properties5
CollideWithAreasProperty
public bool CollideWithAreas { get; set; }If true, the query will take Area3Ds into account.
CollideWithBodiesProperty
public bool CollideWithBodies { get; set; }If true, the query will take PhysicsBody3Ds into account.
CollisionMaskProperty
public uint CollisionMask { get; set; }The physics layers the query will detect (as a bitmask). By default, all collision layers are detected. See Collision layers and masks in the documentation for more information.
ExcludeProperty
public Reckfell.Collections.Array<Rid> Exclude { get; set; }The list of object Rids that will be excluded from collisions. Use CollisionObject3D.GetRid to get the Rid associated with a CollisionObject3D-derived node.
Note: The returned array is copied and any changes to it will not update the original property value. To update the value you need to modify the returned array, and then assign it to the property again.
PositionProperty
public Vector3 Position { get; set; }The position being queried for, in global coordinates.
Methods10
GetCollisionMaskuint
public uint GetCollisionMask();uintGetExcludeReckfell.Collections.Array<Rid>
public Reckfell.Collections.Array<Rid> GetExclude();Reckfell.Collections.Array<Rid>GetPositionVector3
public Vector3 GetPosition();Vector3IsCollideWithAreasEnabledbool
public bool IsCollideWithAreasEnabled();boolIsCollideWithBodiesEnabledbool
public bool IsCollideWithBodiesEnabled();boolSetCollideWithAreasvoid
public void SetCollideWithAreas(bool enable);| Name | Type | Default |
|---|---|---|
enable | bool | — |
SetCollideWithBodiesvoid
public void SetCollideWithBodies(bool enable);| Name | Type | Default |
|---|---|---|
enable | bool | — |
SetCollisionMaskvoid
public void SetCollisionMask(uint collisionMask);| Name | Type | Default |
|---|---|---|
collisionMask | uint | — |
SetExcludevoid
public void SetExclude(Reckfell.Collections.Array<Rid> exclude);| Name | Type | Default |
|---|---|---|
exclude | Reckfell.Collections.Array<Rid> | — |
SetPositionvoid
public void SetPosition(Vector3 position);| Name | Type | Default |
|---|---|---|
position | Vector3 | — |