Class Primitive3DEntityOptions
- Namespace
- Stride.CommunityToolkit.Engine
- Assembly
- Stride.CommunityToolkit.dll
Option set for creating a 3D primitive entity (cube, sphere, capsule, plane, etc.).
public class Primitive3DEntityOptions : PrimitiveEntityOptions
- Inheritance
-
Primitive3DEntityOptions
- Derived
- Inherited Members
Remarks
Extends PrimitiveEntityOptions with a size override. If Size is not provided, the primitive factory chooses shape‑specific defaults (e.g. unit cube, radius 0.5 sphere).
Properties
Size
Gets or sets the desired size/dimensions for the 3D primitive model. When null
, shape‑specific
default dimensions are applied by the creation helper.
public Vector3? Size { get; set; }
Property Value
Remarks
Interpretation depends on primitive type (e.g. box uses all components, sphere may derive radius from the largest component, capsules may map Y to height, etc.). Creation helpers document specifics.