Open 3D Engine LmbrCentral Gem API Reference 23.10.0
O3DE is an open-source, fully-featured, high-fidelity, modular 3D engine for building games and simulations, available to every industry.
LmbrCentral::PolygonPrismShape Class Reference

#include <PolygonPrismShape.h>

Inherits ShapeComponentRequestsBus::Handler, PolygonPrismShapeComponentRequestBus::Handler, AZ::FixedVerticesRequestBus::Handler, AZ::VariableVerticesRequestBus::Handler, and AZ::TransformNotificationBus::Handler.

Public Member Functions

 PolygonPrismShape (const PolygonPrismShape &other)
 
PolygonPrismShapeoperator= (const PolygonPrismShape &other)
 
void Activate (AZ::EntityId entityId)
 
void Deactivate ()
 
void InvalidateCache (InvalidateShapeCacheReason reason)
 
AZ::Crc32 GetShapeType () override
 
AZ::Aabb GetEncompassingAabb () override
 
void GetTransformAndLocalBounds (AZ::Transform &transform, AZ::Aabb &bounds) override
 
bool IsPointInside (const AZ::Vector3 &point) override
 
float DistanceSquaredFromPoint (const AZ::Vector3 &point) override
 
bool IntersectRay (const AZ::Vector3 &src, const AZ::Vector3 &dir, float &distance) override
 
AZ::PolygonPrismPtr GetPolygonPrism () override
 
void SetHeight (float height) override
 
bool GetVertex (size_t index, AZ::Vector2 &vertex) const override
 
void AddVertex (const AZ::Vector2 &vertex) override
 
bool UpdateVertex (size_t index, const AZ::Vector2 &vertex) override
 
bool InsertVertex (size_t index, const AZ::Vector2 &vertex) override
 
bool RemoveVertex (size_t index) override
 
void SetVertices (const AZStd::vector< AZ::Vector2 > &vertices) override
 
void ClearVertices () override
 
size_t Size () const override
 
bool Empty () const override
 
void OnTransformChanged (const AZ::Transform &local, const AZ::Transform &world) override
 
void OnNonUniformScaleChanged (const AZ::Vector3 &scale)
 
const AZ::Vector3 & GetCurrentNonUniformScale () const
 
void ShapeChanged ()
 
AZ::PolygonPrismPtr GetPolygonPrism () const
 
const AZ::Transform & GetCurrentTransform () const
 

Static Public Member Functions

static void Reflect (AZ::ReflectContext *context)
 

Detailed Description

Configuration data for PolygonPrismShapeComponent. Internally represented as a vertex list with a height (extrusion) property. All vertices must lie on the same plane to form a specialized type of prism, a polygon prism. A Vector2 is used to enforce this.


The documentation for this class was generated from the following file: