Open 3D Engine LmbrCentral Gem API Reference
24.09
O3DE is an open-source, fully-featured, high-fidelity, modular 3D engine for building games and simulations, available to every industry.
|
#include <AttachmentComponentBus.h>
Inherits AZ::ComponentBus.
Public Member Functions | |
virtual void | Attach (AZ::EntityId targetId, const char *targetBoneName, const AZ::Transform &offset)=0 |
virtual void | Detach ()=0 |
The entity will detach from its target. | |
virtual void | Reattach (bool detachFirst)=0 |
virtual void | SetAttachmentOffset (const AZ::Transform &offset)=0 |
Update entity's offset from target. | |
virtual const char * | GetJointName ()=0 |
Get the selected joint name. | |
virtual AZ::EntityId | GetTargetEntityId ()=0 |
Get the target entity Id. | |
virtual AZ::Transform | GetOffset ()=0 |
Get the transform offset. | |
Messages serviced by the AttachmentComponent. The AttachmentComponent lets an entity "stick" to a particular bone on a target entity.
|
pure virtual |
Change attachment target. The entity will detach from any previous target.
targetId | Attach to this entity. |
targetBoneName | Attach to this bone on target entity. If targetBone is not found then attach to target entity's transform origin. |
offset | Attachment's offset from target. |
|
pure virtual |
Trigger a detach followed by a re-attach using the currently setup targetId and bone name and offset. This can be used when an asset reloads for example.