Class ConstraintGizmo
- Namespace
- Stride.BepuPhysics.Systems
- Assembly
- Stride.BepuPhysics.dll
[GizmoComponent(typeof(ConstraintComponentBase), false)]
public class ConstraintGizmo : IEntityGizmo, IGizmo, IDisposable
- Inheritance
-
ConstraintGizmo
- Implements
- Extension Methods
Constructors
ConstraintGizmo(ConstraintComponentBase)
public ConstraintGizmo(ConstraintComponentBase component)
Parameters
component
ConstraintComponentBase
Fields
Shapes
protected ConstraintGizmo.ShapeCache Shapes
Field Value
Properties
IsEnabled
Gets or sets the enabled state of the gizmo.
public bool IsEnabled { get; set; }
Property Value
IsSelected
Gets or sets the selected state of the gizmo.
public bool IsSelected { get; set; }
Property Value
SizeFactor
Gets or sets the size scale factor of the gizmo.
public float SizeFactor { get; set; }
Property Value
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
OpaqueComponentIdselection
Entity
Returns
Initialize(IServiceRegistry, Scene)
Initialize the gizmo.
public void Initialize(IServiceRegistry services, Scene editorScene)
Parameters
services
IServiceRegistryeditorScene
Scene
Update()
Updates the gizmo state.
public void Update()