Class ImmediateDebugRenderObject
- Namespace
- Stride.CommunityToolkit.DebugShapes
- Assembly
- Stride.CommunityToolkit.DebugShapes.dll
Represents a render object for immediate debug rendering, allowing the addition of various shapes and lines.
public class ImmediateDebugRenderObject : RenderObject
- Inheritance
-
ImmediateDebugRenderObject
- Inherited Members
Methods
DrawCapsule(ref Vector3, float, float, ref Quaternion, ref Color, bool)
Adds a capsule to the debug render queue.
public void DrawCapsule(ref Vector3 position, float height, float radius, ref Quaternion rotation, ref Color color, bool depthTest = true)
Parameters
positionVector3The position of the capsule.
heightfloatThe height of the capsule.
radiusfloatThe radius of the capsule.
rotationQuaternionThe rotation of the capsule.
colorColorThe color of the capsule.
depthTestboolWhether to use depth testing for rendering.
DrawCircle(ref Vector3, float, ref Quaternion, ref Color, bool)
Adds a circle to the debug render queue.
public void DrawCircle(ref Vector3 position, float radius, ref Quaternion rotation, ref Color color, bool depthTest = true)
Parameters
positionVector3The position of the circle.
radiusfloatThe radius of the circle.
rotationQuaternionThe rotation of the circle.
colorColorThe color of the circle.
depthTestboolWhether to use depth testing for rendering.
DrawCone(ref Vector3, float, float, ref Quaternion, ref Color, bool)
Adds a cone to the debug render queue.
public void DrawCone(ref Vector3 position, float height, float radius, ref Quaternion rotation, ref Color color, bool depthTest = true)
Parameters
positionVector3The position of the cone.
heightfloatThe height of the cone.
radiusfloatThe radius of the cone.
rotationQuaternionThe rotation of the cone.
colorColorThe color of the cone.
depthTestboolWhether to use depth testing for rendering.
DrawCube(ref Vector3, ref Vector3, ref Quaternion, ref Color, bool)
Adds a cube to the debug render queue.
public void DrawCube(ref Vector3 start, ref Vector3 end, ref Quaternion rotation, ref Color color, bool depthTest = true)
Parameters
startVector3The centre of the cube.
endVector3startplus the cube's size.rotationQuaternionThe rotation of the cube.
colorColorThe color of the cube.
depthTestboolWhether to use depth testing for rendering.
DrawCylinder(ref Vector3, float, float, ref Quaternion, ref Color, bool)
Adds a cylinder to the debug render queue.
public void DrawCylinder(ref Vector3 position, float height, float radius, ref Quaternion rotation, ref Color color, bool depthTest = true)
Parameters
positionVector3The position of the cylinder.
heightfloatThe height of the cylinder.
radiusfloatThe radius of the cylinder.
rotationQuaternionThe rotation of the cylinder.
colorColorThe color of the cylinder.
depthTestboolWhether to use depth testing for rendering.
DrawHalfSphere(ref Vector3, float, ref Quaternion, ref Color, bool)
Adds a half-sphere to the debug render queue.
public void DrawHalfSphere(ref Vector3 position, float radius, ref Quaternion rotation, ref Color color, bool depthTest = true)
Parameters
positionVector3The position of the half-sphere.
radiusfloatThe radius of the half-sphere.
rotationQuaternionThe rotation of the half-sphere.
colorColorThe color of the half-sphere.
depthTestboolWhether to use depth testing for rendering.
DrawLine(ref Vector3, ref Vector3, ref Color, bool)
Adds a line to the debug render queue.
public void DrawLine(ref Vector3 start, ref Vector3 end, ref Color color, bool depthTest = true)
Parameters
startVector3The starting position of the line.
endVector3The ending position of the line.
colorColorThe color of the line.
depthTestboolWhether to use depth testing for rendering.
DrawQuad(ref Vector3, ref Vector2, ref Quaternion, ref Color, bool)
Adds a quad to the debug render queue.
public void DrawQuad(ref Vector3 position, ref Vector2 size, ref Quaternion rotation, ref Color color, bool depthTest = true)
Parameters
positionVector3The position of the quad.
sizeVector2The size of the quad.
rotationQuaternionThe rotation of the quad.
colorColorThe color of the quad.
depthTestboolWhether to use depth testing for rendering.
DrawSphere(ref Vector3, float, ref Color, bool)
Adds a sphere to the debug render queue.
public void DrawSphere(ref Vector3 position, float radius, ref Color color, bool depthTest = true)