I would like to build a chain of entities in RealityComposer in a way that they are "glued together" at one face each, while individually obeying gravity physics:
In this example, the gray component can stay fixed and non-physically interacting, to the face, but I would like the other chain components to be able to move and behave like an elephant's trunk.
The auto-generated code for these components in Experience.swift is very basic, and appears also to be read-only, so I don't understand how to take it further from a coding perspective:
public class Trunk: RealityKit.Entity, RealityKit.HasAnchoring {
public var anchorSegement: RealityKit.Entity? {
return self.findEntity(named: "AnchorSegement")
}
public var segment1: RealityKit.Entity? {
return self.findEntity(named: "Segment_1")
}
public var segment2: RealityKit.Entity? {
return self.findEntity(named: "Segment_2")
}
public var segment3: RealityKit.Entity? {
return self.findEntity(named: "Segment_3")
}
}
