hubs
hubs copied to clipboard
BG - Need a way to attach/detach entitites dynamically.
It's a common operation in 3d engines to dynamically attach/detach entities at run-time. An example would be a player clicks on an item and that item becomes attached to the player's hand or body.
I understand that physics-enabled items would likely employ a different method such as dynamic physics constraints.
But a general Attach Entity to Entity
or Attach Entity to component
(for things like animated bones) is necessary for such interactions.
Describe the solution you'd like Unreal Blueprints have similar concepts (Attach Actor to Actor) that would be a good reference.
Describe alternatives you've considered Mostly have tried hiding/showing things via visibility to fake the effect, but have hit limitations pretty quickly.
Additional context
Unreal examples:
-
https://docs.unrealengine.com/5.2/en-US/BlueprintAPI/Transformation/AttachActorToActor/
-
https://docs.unrealengine.com/5.0/en-US/BlueprintAPI/Transformation/AttachActorToComponent/
Note: The latter example appears to account for physics by adding an option to weld physics bodies with a constraint. Not sure about combining that functionality is wise versus keeping physics constraints its own set of operations/nodes.