#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) | |
PolygonPrismShape & | operator= (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) |
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.