Table of Contents

Class Primitive3DCreationOptions

Namespace
Stride.CommunityToolkit.Bepu
Assembly
Stride.CommunityToolkit.Bepu.dll

Provides options for creating a primitive entity in a 3D scene.

public class Primitive3DCreationOptions : PrimitiveCreationOptions
Inheritance
Primitive3DCreationOptions
Inherited Members

Remarks

This class inherits from PrimitiveCreationOptions and extends it with properties specific to 3D models, such as size and physics components.

Properties

Component

Gets or sets the physics component to be added to the entity. Defaults to a new instance of BodyComponent.

public CollidableComponent Component { get; set; }

Property Value

CollidableComponent

Remarks

By default, a BodyComponent is assigned to the entity to handle physics simulations, but you can override this with a custom physics component if needed.

Size

Gets or sets the size of the 3D primitive model. If null, default dimensions are used.

public Vector3? Size { get; set; }

Property Value

Vector3?

Remarks

The Size property allows you to specify custom dimensions for the 3D model. If no size is specified, default dimensions will be applied, based on the type of primitive.