Class ImmediateDebugRenderSystem
- Namespace
- Stride.CommunityToolkit.Rendering.DebugShapes
- Assembly
- Stride.CommunityToolkit.dll
public class ImmediateDebugRenderSystem : GameSystemBase, IDisposable, ICollectorHolder, IGameSystemBase, IComponent, IReferencable, IUpdateable, IDrawable, IContentable
- Inheritance
-
ImmediateDebugRenderSystem
- Implements
- Inherited Members
Constructors
ImmediateDebugRenderSystem(IServiceRegistry, RenderGroup)
public ImmediateDebugRenderSystem(IServiceRegistry registry, RenderGroup renderGroup = RenderGroup.Group31)
Parameters
registry
IServiceRegistryrenderGroup
RenderGroup
Properties
MaxPrimitives
public int MaxPrimitives { get; set; }
Property Value
MaxPrimitivesWithLifetime
public int MaxPrimitivesWithLifetime { get; set; }
Property Value
PrimitiveColor
public Color PrimitiveColor { get; set; }
Property Value
RenderGroup
public RenderGroup RenderGroup { get; set; }
Property Value
Methods
DrawArrow(Vector3, Vector3, float, float, Color, float, bool, bool)
public void DrawArrow(Vector3 from, Vector3 to, float coneHeight = 0.25, float coneRadius = 0.125, Color color = default, float duration = 0, bool depthTest = true, bool solid = false)
Parameters
from
Vector3to
Vector3coneHeight
floatconeRadius
floatcolor
Colorduration
floatdepthTest
boolsolid
bool
DrawBounds(Vector3, Vector3, Quaternion, Color, float, bool, bool)
public void DrawBounds(Vector3 start, Vector3 end, Quaternion rotation = default, Color color = default, float duration = 0, bool depthTest = true, bool solid = false)
Parameters
DrawCapsule(Vector3, float, float, Quaternion, Color, float, bool, bool)
public void DrawCapsule(Vector3 position, float height, float radius, Quaternion rotation = default, Color color = default, float duration = 0, bool depthTest = true, bool solid = false)
Parameters
position
Vector3height
floatradius
floatrotation
Quaternioncolor
Colorduration
floatdepthTest
boolsolid
bool
DrawCircle(Vector3, float, Quaternion, Color, float, bool, bool)
public void DrawCircle(Vector3 position, float radius, Quaternion rotation = default, Color color = default, float duration = 0, bool depthTest = true, bool solid = false)
Parameters
position
Vector3radius
floatrotation
Quaternioncolor
Colorduration
floatdepthTest
boolsolid
bool
DrawCone(Vector3, float, float, Quaternion, Color, float, bool, bool)
public void DrawCone(Vector3 position, float height, float radius, Quaternion rotation = default, Color color = default, float duration = 0, bool depthTest = true, bool solid = false)
Parameters
position
Vector3height
floatradius
floatrotation
Quaternioncolor
Colorduration
floatdepthTest
boolsolid
bool
DrawCube(Vector3, Vector3, Quaternion, Color, float, bool, bool)
public void DrawCube(Vector3 start, Vector3 size, Quaternion rotation = default, Color color = default, float duration = 0, bool depthTest = true, bool solid = false)
Parameters
DrawCylinder(Vector3, float, float, Quaternion, Color, float, bool, bool)
public void DrawCylinder(Vector3 position, float height, float radius, Quaternion rotation = default, Color color = default, float duration = 0, bool depthTest = true, bool solid = false)
Parameters
position
Vector3height
floatradius
floatrotation
Quaternioncolor
Colorduration
floatdepthTest
boolsolid
bool
DrawHalfSphere(Vector3, float, Color, Quaternion, float, bool, bool)
public void DrawHalfSphere(Vector3 position, float radius, Color color = default, Quaternion rotation = default, float duration = 0, bool depthTest = true, bool solid = false)
Parameters
position
Vector3radius
floatcolor
Colorrotation
Quaternionduration
floatdepthTest
boolsolid
bool
DrawLine(Vector3, Vector3, Color, float, bool)
public void DrawLine(Vector3 start, Vector3 end, Color color = default, float duration = 0, bool depthTest = true)
Parameters
DrawLines(Vector3[], Color?, float, bool)
public void DrawLines(Vector3[] vertices, Color? color = null, float duration = 0, bool depthTest = true)
Parameters
DrawQuad(Vector3, Vector2, Quaternion, Color, float, bool, bool)
public void DrawQuad(Vector3 position, Vector2 size, Quaternion rotation = default, Color color = default, float duration = 0, bool depthTest = true, bool solid = false)
Parameters
position
Vector3size
Vector2rotation
Quaternioncolor
Colorduration
floatdepthTest
boolsolid
bool
DrawRay(Vector3, Vector3, Color, float, bool)
public void DrawRay(Vector3 start, Vector3 dir, Color color = default, float duration = 0, bool depthTest = true)
Parameters
DrawSphere(Vector3, float, Color, float, bool, bool)
public void DrawSphere(Vector3 position, float radius, Color color = default, float duration = 0, bool depthTest = true, bool solid = false)
Parameters
Update(GameTime)
This method is called when this game component is updated.
public override void Update(GameTime gameTime)
Parameters
gameTime
GameTimeThe current timing.