Table of Contents

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 CollisionMask
layer CollisionLayer

Returns

bool

IsSetIn(CollisionLayer, CollisionMask)

Returns whether layer can be found in mask

public static bool IsSetIn(this CollisionLayer layer, CollisionMask mask)

Parameters

layer CollisionLayer
mask CollisionMask

Returns

bool

ToMask(CollisionLayer)

Returns a new CollisionMask where layer is set

public static CollisionMask ToMask(this CollisionLayer layer)

Parameters

layer CollisionLayer

Returns

CollisionMask