Class CollisionLayersExtension
- Namespace
- Stride.BepuPhysics
- Assembly
- Stride.BepuPhysics.dll
public static class CollisionLayersExtension
- Inheritance
-
CollisionLayersExtension
Methods
IsSet(CollisionMask, CollisionLayer)
Returns whether layer
can be found in mask
public static bool IsSet(this CollisionMask mask, CollisionLayer layer)
Parameters
mask
CollisionMasklayer
CollisionLayer
Returns
IsSetIn(CollisionLayer, CollisionMask)
Returns whether layer
can be found in mask
public static bool IsSetIn(this CollisionLayer layer, CollisionMask mask)
Parameters
layer
CollisionLayermask
CollisionMask
Returns
ToMask(CollisionLayer)
Returns a new CollisionMask where layer
is set
public static CollisionMask ToMask(this CollisionLayer layer)
Parameters
layer
CollisionLayer