How to stop the entity with dynamic rigibody?

Heh, that’s a little overkill as it probably makes all kinds of changes and re-creates the physics body.

Simplest way to reset is:

this.entity.rigidbody.linearVelocity = pc.Vec3.ZERO;
this.entity.rigidbody.angularVelocity = pc.Vec3.ZERO;