- Home /
Error: NpRigidDynamic::isSleeping: Body must be in a scene.
NpRigidDynamic::isSleeping: Body must be in a scene.
What is this error? It spams the Development Console on a Windows Store App build but doesn't show up for any other build target.
My application doesn't even have multiple scenes and I have no idea how I would instantiate a gameobject/rigidbody outside of a scene if that's what it thinks I'm doing.
Answer by Kody · Jul 06, 2015 at 01:23 PM
Figured it out. Sort of.
It's caused by having a disabled gameobject with a non kinematic rigidbody parented to an enabled one. I don't know why that causes this error. Or why it only causes it on a Windows Store App build.
The work around I use is setting the rigidbody as kinematic and then toggling it as not kinematic when I enable the gameobject. This gets rid of the error.
Your answer
Follow this Question
Related Questions
Invalid AABB Error on collision :( 1 Answer
Strange physics, rigidbody, iTween activity 1 Answer
Rigidbodies getting stuck in non moving objects 0 Answers
Unity Script causing crash 1 Answer
Rigidbody Rotation Problem 0 Answers