INNER CODE UNIT · C#

Bepu2DPhysicsOptions

stride3d/stride-community-toolkit · src/Stride.CommunityToolkit.Bepu/Bepu2DPhysicsOptions.cs:15

public class Bepu2DPhysicsOptions : Primitive2DEntityOptions
{
    /// <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="Body2DComponent"/> with an empty <see cref="CompoundCollider"/>, while the ground helper attaches a <see cref="StaticComponent"/>. Set it explicitly to override either default.
    /// </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;
}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…