- Home /
how do you tell if a rigidbody is awake
how do you tell if a rigidbody is asleep. Does raycasting work on asleep objects? Does it wake them?
Thanks,
Comment
Answer by Jake Haas · Jul 06, 2012 at 08:43 PM
Try this:
if (!rigidbody.IsSleeping()) { // Do stuff here }
This simple line of code from 2012 worked out my 3 hours of problems...
Your answer
Follow this Question
Related Questions
Run script on rigidbody awake? 1 Answer
2.5D Shooting Rigidbodies vs RayCasts 0 Answers
0 Understanding of raycast2D commands 2 Answers
Drag Rigid Bodies First Person Controller.js 0 Answers
Add Force when level loads 2 Answers