17. Blueprints

AGX Dynamics for Unreal components can be added to an Actor Blueprint. This chapter details some things to keep in mind while adding plugin components to a Blueprint.

One thing to keep in mind while setting up constraints while in the Actor Blueprint editor is that that Actor doesn’t exist yet which means that we cannot create references to it or any of its Components. This means that when setting up the body attachments of a ConstraintComponent it is not possible to set the Owning Actor of the RigidBodyComponent and it should be left as None. Instead it is assumed that the constraint should attach to one of the bodies within the current Blueprint and the lookup for the final RigidBodyComponent is delayed until the Blueprint is instantiated, at which time a name lookup is made in the newly instantiated Actor.