HughPH.Box2D
Organised dotnet bindings for Box2D 3.1.0
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
Box2D.QueryFilter Struct Reference

The query filter is used to filter collisions between queries and shapes. For example, you may want a ray-cast representing a projectile to hit players and the static environment but not debris. More...

Public Member Functions

 QueryFilter (ulong categoryBits, ulong maskBits)
 Constructor for the query filter.
 
 QueryFilter ()
 Default constructor for the query filter. This will set the filter to the default settings.
 

Public Attributes

ulong CategoryBits
 The collision category bits of this query. Normally you would just set one bit.
 
ulong MaskBits
 The collision mask bits. This states the shape categories that this query would accept for collision.
 

Detailed Description

The query filter is used to filter collisions between queries and shapes. For example, you may want a ray-cast representing a projectile to hit players and the static environment but not debris.


The documentation for this struct was generated from the following file: