Table of Contents

Class CollidableGizmo

Namespace
Stride.BepuPhysics.Systems
Assembly
Stride.BepuPhysics.dll
[GizmoComponent(typeof(CollidableComponent), false)]
public sealed class CollidableGizmo : IEntityGizmo, IGizmo, IDisposable
Inheritance
CollidableGizmo
Implements
Extension Methods

Constructors

CollidableGizmo(CollidableComponent)

public CollidableGizmo(CollidableComponent component)

Parameters

component CollidableComponent

Properties

IsEnabled

Gets or sets the enabled state of the gizmo.

public bool IsEnabled { get; set; }

Property Value

bool

IsSelected

Gets or sets the selected state of the gizmo.

public bool IsSelected { get; set; }

Property Value

bool

SizeFactor

Gets or sets the size scale factor of the gizmo.

public float SizeFactor { get; set; }

Property Value

float

Methods

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

public void Dispose()

HandlesComponentId(OpaqueComponentId, out Entity?)

Used for picking gizmos on mouse down, returns true when that component was created by this gizmo

public bool HandlesComponentId(OpaqueComponentId pickedComponentId, out Entity? selection)

Parameters

pickedComponentId OpaqueComponentId
selection Entity

Returns

bool

Initialize(IServiceRegistry, Scene)

Initialize the gizmo.

public void Initialize(IServiceRegistry services, Scene editorScene)

Parameters

services IServiceRegistry
editorScene Scene

Update()

Updates the gizmo state.

public void Update()