|
Open 3D Engine DebugDraw Gem API Reference
23.05.0
O3DE is an open-source, fully-featured, high-fidelity, modular 3D engine for building games and simulations, available to every industry.
|
Inherits EBusTraits.
Public Member Functions | |
| virtual void | DrawAabb ([[maybe_unused]] const AZ::Aabb &aabb, [[maybe_unused]] const AZ::Color &color, [[maybe_unused]] float duration) |
| virtual void | DrawAabbOnEntity ([[maybe_unused]] const AZ::EntityId &targetEntity, [[maybe_unused]] const AZ::Aabb &aabb, [[maybe_unused]] const AZ::Color &color, [[maybe_unused]] float duration) |
| virtual void | DrawLineLocationToLocation ([[maybe_unused]] const AZ::Vector3 &startLocation, [[maybe_unused]] const AZ::Vector3 &endLocation, [[maybe_unused]] const AZ::Color &color, [[maybe_unused]] float duration) |
| virtual void | DrawLineBatchLocationToLocation ([[maybe_unused]] const AZStd::vector< DebugDraw::DebugDrawLineElement > &lineBatch) |
| virtual void | DrawLineEntityToLocation ([[maybe_unused]] const AZ::EntityId &startEntity, [[maybe_unused]] const AZ::Vector3 &endLocation, [[maybe_unused]] const AZ::Color &color, [[maybe_unused]] float duration) |
| virtual void | DrawLineEntityToEntity ([[maybe_unused]] const AZ::EntityId &startEntity, [[maybe_unused]] const AZ::EntityId &endEntity, [[maybe_unused]] const AZ::Color &color, [[maybe_unused]] float duration) |
| virtual void | DrawObb ([[maybe_unused]] const AZ::Obb &obb, [[maybe_unused]] const AZ::Color &color, [[maybe_unused]] float duration) |
| virtual void | DrawObbOnEntity ([[maybe_unused]] const AZ::EntityId &targetEntity, [[maybe_unused]] const AZ::Obb &obb, [[maybe_unused]] const AZ::Color &color, [[maybe_unused]] float duration) |
| virtual void | DrawTextAtLocation ([[maybe_unused]] const AZ::Vector3 &worldLocation, [[maybe_unused]] const AZStd::string &text, [[maybe_unused]] const AZ::Color &color, [[maybe_unused]] float duration) |
| virtual void | DrawTextOnEntity ([[maybe_unused]] const AZ::EntityId &targetEntity, [[maybe_unused]] const AZStd::string &text, [[maybe_unused]] const AZ::Color &color, [[maybe_unused]] float duration) |
| virtual void | DrawTextOnScreen ([[maybe_unused]] const AZStd::string &text, [[maybe_unused]] const AZ::Color &color, [[maybe_unused]] float duration) |
| virtual void | DrawRayLocationToDirection ([[maybe_unused]] const AZ::Vector3 &worldLocation, [[maybe_unused]] const AZ::Vector3 &worldDirection, [[maybe_unused]] const AZ::Color &color, [[maybe_unused]] float duration) |
| virtual void | DrawRayEntityToDirection ([[maybe_unused]] const AZ::EntityId &startEntity, [[maybe_unused]] const AZ::Vector3 &worldDirection, [[maybe_unused]] const AZ::Color &color, [[maybe_unused]] float duration) |
| virtual void | DrawRayEntityToEntity ([[maybe_unused]] const AZ::EntityId &startEntity, [[maybe_unused]] const AZ::EntityId &endEntity, [[maybe_unused]] const AZ::Color &color, [[maybe_unused]] float duration) |
| virtual void | DrawSphereAtLocation ([[maybe_unused]] const AZ::Vector3 &worldLocation, [[maybe_unused]] float radius, [[maybe_unused]] const AZ::Color &color, [[maybe_unused]] float duration) |
| virtual void | DrawSphereOnEntity ([[maybe_unused]] const AZ::EntityId &targetEntity, [[maybe_unused]] float radius, [[maybe_unused]] const AZ::Color &color, [[maybe_unused]] float duration) |
Static Public Attributes | |
| static const AZ::EBusHandlerPolicy | HandlerPolicy = AZ::EBusHandlerPolicy::Single |
| static const AZ::EBusAddressPolicy | AddressPolicy = AZ::EBusAddressPolicy::Single |
|
inlinevirtual |
Draws an axis-aligned bounding-box (Aabb) in the world centered at worldLocation
| worldLocation | World location for the Aabb to be centered at |
| aabb | Aabb to render |
| color | Color of Aabb |
| duration | How long to display the Aabb for; 0 value will draw for one frame; negative values draw forever |
|
inlinevirtual |
Draws an axis-aligned bounding-box (Aabb) in the world centered at targetEntity's location
| targetEntity | Entity for the world location of the Aabb to be centered at |
| Aabb | Aabb to render |
| color | Color of Aabb |
| duration | How long to display the Aabb for; 0 value will draw for one frame; negative values draw forever |
|
inlinevirtual |
Draw a batch of lines in the world
| lineBatch | A collection of lines |
|
inlinevirtual |
Draws a line in the world from an entity to a location for a specified duration
| startEntity | Entity for the world location of the line to start at |
| endEntity | Entity for the world location of the line to end at |
| color | Color of line |
| duration | How long to display the line for; 0 value will draw for one frame; negative values draw forever |
|
inlinevirtual |
Draws a line in the world from an entity to a location for a specified duration
| startEntity | Entity for the world location of the line to start at |
| endLocation | World location for the line to end at |
| color | Color of line |
| duration | How long to display the line for; 0 value will draw for one frame; negative values draw forever |
|
inlinevirtual |
Draws a line in the world for a specified duration
| startLocation | World location for the line to start at |
| endLocation | World location for the line to end at |
| color | Color of line |
| duration | How long to display the line for; 0 value will draw for one frame; negative values draw forever |
|
inlinevirtual |
Draws an oriented bounding-box (Obb) in the world
| obb | Obb to render |
| color | Color of Obb |
| duration | How long to display the Obb for; 0 value will draw for one frame; negative values draw forever |
|
inlinevirtual |
Draws an oriented bounding-box (Obb) in the world centered at targetEntity's location and in entity space (rotates/scales with entity)
| targetEntity | Entity for the Obb to be transformed by (located at entity location, rotates/scales with entity) |
| Obb | Obb to render |
| color | Color of Obb |
| duration | How long to display the Obb for; 0 value will draw for one frame; negative values draw forever |
|
inlinevirtual |
Draws a ray in the world starting at an entity's location for a specified duration
| startEntity | Entity for the world location of the ray to start at |
| worldDirection | World direction for the ray to draw towards |
| color | Color of ray |
| duration | How long to display the ray for; 0 value will draw for one frame; negative values draw forever |
|
inlinevirtual |
Draws a ray in the world starting at an entity's location and ending at another's for a specified duration
| startEntity | Entity for the world location of the ray to start at |
| endEntity | Entity for the world location of the ray to end at |
| color | Color of ray |
| duration | How long to display the ray for; 0 value will draw for one frame; negative values draw forever |
|
inlinevirtual |
Draws a ray in the world for a specified duration
| worldLocation | World location for the ray to start at |
| worldDirection | World direction for the ray to draw towards |
| color | Color of ray |
| duration | How long to display the ray for; 0 value will draw for one frame; negative values draw forever |
|
inlinevirtual |
Draws a sphere in the world centered at worldLocation
| worldLocation | World location for the sphere to be centered at |
| radius | Radius of the sphere |
| color | Color of sphere |
| duration | How long to display the sphere for; 0 value will draw for one frame; negative values draw forever |
|
inlinevirtual |
Draws a sphere in the world centered at targetEntity's location
| targetEntity | Entity for the world location of the sphere to be centered at |
| radius | Radius of the sphere |
| color | Color of sphere |
| duration | How long to display the sphere for; 0 value will draw for one frame; negative values draw forever |
|
inlinevirtual |
Draws text in the world centered at worldLocation
| worldLocation | World location for the text to be centered at |
| text | Text to be displayed |
| color | Color of text |
| duration | How long to display the text for; 0 value will draw for one frame; negative values draw forever |
|
inlinevirtual |
Draws text in the world at targetEntity's location
| targetEntity | Entity for the world location of the text to be centered at |
| text | Text to be displayed |
| color | Color of text |
| duration | How long to display the text for; 0 value will draw for one frame; negative values draw forever |
|
inlinevirtual |
Draws text on the screen
| text | Text to be displayed. prefix with "-category:Name " for automatic grouping of screen text Ex: "-category:MyRenderingInfo FPS:60" will draw "FPS:60" in a MyRenderingInfo category box |
| color | Color of text |
| duration | How long to display the text for; 0 value will draw for one frame; negative values draw forever |