Skip to content

Can InstancedRigidBodies have their own Attractors? #365

Answered by wiledal
casualWaist asked this question in Q&A
Discussion options

You must be logged in to vote

Never tried this! But it might work to add an attractor within the colliderNodes array, as those are directly injected into the RigidBodies as children.

<InstancedRigidBodies colliderNodes={[
  <Attractor />
]} />

Again, I haven't tried this, but it should technically work.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@casualWaist
Comment options

@casualWaist
Comment options

Answer selected by casualWaist
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants