playcanvas / playcanvas/engine

[BUG] Unable to reuse collision script even after removing rigidbody component

Open
#2,195 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

area: physics
Dominant language
JavaScript
Stars
16.8k
Forks
2k
Avg merge
4h 32m
Merged PRs (30d)
222

Description

Refer Forum: https://forum.playcanvas.com/t/unable-to-reuse-collision-script-even-after-removing-rigidbody-component/13765

Here is simple project where Box fall on Ball.

Box have dynamic rigidbody.
Ball have collider with triggerenter event.

When Box touch to Ball. I am adding dynamic rigidbody to Ball.

But after clicking on reset button, I am repositioning the entities at original place also i am trying to remove dynamic rigidbody from Ball to enable the collision component.

But it does not work…

So i created simulation here : https://playcanvas.com/editor/scene/943957

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the behavior in the linked PlayCanvas scene, where a Box collides with a Ball and a dynamic rigidbody is added during triggerenter. Compare the reset sequence—repositioning entities and removing the Ball's rigidbody—with the expected collision behavior. Done means the collision component works again after reset without recreating the scene.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
game-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.