BoxColliderShape Class
Namespace: Stride.PhysicsAssembly: Stride.Physics.dll
Derived from BoxColliderShape:
public class BoxColliderShape : ColliderShape, IDisposable
Name | Description | |
---|---|---|
Constructors | ||
BoxColliderShape(Boolean, Vector3) | Initializes a new instance of the BoxColliderShape class. |
|
Fields | ||
BoxSize | ||
Methods | ||
CreateDebugPrimitive(GraphicsDevice) |
Constructors
BoxColliderShape(Boolean, Vector3)
Initializes a new instance of the BoxColliderShape class.
public BoxColliderShape(bool is2D, Vector3 size)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | is2D | If this cube is a 2D quad |
Vector3 | size | The size of the cube |
Fields
BoxSize
public readonly Vector3 BoxSize
Field Value
Type | Description |
---|---|
Vector3 |
Methods
CreateDebugPrimitive(GraphicsDevice)
public override MeshDraw CreateDebugPrimitive(GraphicsDevice device)
Parameters
Type | Name | Description |
---|---|---|
GraphicsDevice | device |
Returns
Type | Description |
---|---|
MeshDraw |