Table of Contents

Class Primitive3DCreationOptions

Namespace
Stride.CommunityToolkit.Engine
Assembly
Stride.CommunityToolkit.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

PhysicsComponent

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

public PhysicsComponent? PhysicsComponent { get; set; }

Property Value

PhysicsComponent

Remarks

By default, a RigidbodyComponent 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.