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::ReferenceShapeComponent Class Reference

#include <ReferenceShapeComponent.h>

Inherits AZ::Component, AZ::EntityBus::Handler, AZ::TransformNotificationBus::Handler, LmbrCentral::ShapeComponentNotificationsBus::Handler, LmbrCentral::ShapeComponentRequestsBus::Handler, and ReferenceShapeRequestBus::Handler.

Public Member Functions

 AZ_COMPONENT (ReferenceShapeComponent, ReferenceShapeComponentTypeId)
 
 ReferenceShapeComponent (const ReferenceShapeConfig &configuration)
 
void Activate () override
 
void Deactivate () override
 
bool ReadInConfig (const AZ::ComponentConfig *baseConfig) override
 
bool WriteOutConfig (AZ::ComponentConfig *outBaseConfig) const override
 
void OnEntityActivated (const AZ::EntityId &entityId) override
 
void OnEntityDeactivated (const AZ::EntityId &entityId) override
 
void OnTransformChanged (const AZ::Transform &local, const AZ::Transform &world) override
 
void OnShapeChanged (LmbrCentral::ShapeComponentNotifications::ShapeChangeReasons reasons) override
 
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 DistanceFromPoint (const AZ::Vector3 &point) override
 
float DistanceSquaredFromPoint (const AZ::Vector3 &point) override
 
AZ::Vector3 GenerateRandomPointInside (AZ::RandomDistributionType randomDistribution) override
 
bool IntersectRay (const AZ::Vector3 &src, const AZ::Vector3 &dir, float &distance) override
 

Static Public Member Functions

static void GetProvidedServices (AZ::ComponentDescriptor::DependencyArrayType &services)
 
static void GetIncompatibleServices (AZ::ComponentDescriptor::DependencyArrayType &services)
 
static void GetRequiredServices (AZ::ComponentDescriptor::DependencyArrayType &services)
 
static void Reflect (AZ::ReflectContext *context)
 

Protected Member Functions

AZ::EntityId GetShapeEntityId () const override
 
void SetShapeEntityId (AZ::EntityId entityId) override
 

Friends

template<typename , typename >
class LmbrCentral::EditorWrappedComponentBase
 

Detailed Description

allows reference and reuse of shape entities


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