Can InstancedRigidBodies have their own Attractors? #365
Answered
by
wiledal
casualWaist
asked this question in
Q&A
|
When I nest an Attractor in an InstancedRigidBodies tag I just get a single attraction point at the center of the scene despite all of the instances being placed properly in the scene. Not sure if I have multiple attractors at the center or it's just one. It works with a single RigidBody and I'm not sure if I'm reaching for a capability beyond what was intended. |
Answered by
wiledal
Apr 6, 2023
Replies: 1 comment 2 replies
|
Never tried this! But it might work to add an attractor within the <InstancedRigidBodies colliderNodes={[
<Attractor />
]} />Again, I haven't tried this, but it should technically work. |
2 replies
Answer selected by
casualWaist
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Never tried this! But it might work to add an attractor within the
colliderNodesarray, as those are directly injected into the RigidBodies as children.Again, I haven't tried this, but it should technically work.