INNER CODE UNIT · C#
Bepu3DPhysicsOptions
stride3d/stride-community-toolkit · src/Stride.CommunityToolkit.Bepu/Bepu3DPhysicsOptions.cs:15
public class Bepu3DPhysicsOptions : Primitive3DEntityOptions
{
/// <summary>
/// Gets or sets the Bepu collidable component attached to the entity.
/// </summary>
/// <remarks>
/// When <see langword="null"/> (the default), the consuming helper chooses: primitive creation attaches a dynamic <see cref="BodyComponent"/> with an empty <see cref="CompoundCollider"/>, while ground helpers attach a <see cref="StaticComponent"/>. Set it explicitly to override either default or to preconfigure collider children.
/// </remarks>
public CollidableComponent? Component { get; set; }
/// <summary>
/// Gets or sets a value indicating whether a collider shape matching the primitive type is created automatically.
/// </summary>
/// <remarks>
/// Defaults to <see langword="true"/>. When set to <see langword="false"/>, the <see cref="Component"/> is attached without generated collider shapes so they can be added later.
/// </remarks>
public bool IncludeCollider { get; set; } = true;
}