Question by
moonmauler · Oct 26, 2020 at 11:22 AM ·
rigidbodyphysics.raycast
Adding A rigidbody to an object prevents it from being detected by a raycast unless the rigidbody is kinematic.
My problem follows as above from my own testing. Some further details, the raycast is layermasked to an interactable layer. Currently all layers can collide with each other and rigidbody physics are applied to the object as expected when gravity is turned on.
Again, if I turn on kinematic for the rigidbody, my system works as I expect. I've searched online and it seems like the addition/settings of the rigidbody shouldn't really affect this kind of thing at all.
Comment
Your answer
Follow this Question
Related Questions
Rigidbody.addForce is not working 10 Answers
How can i make a game run smoothly with rigidboies? 0 Answers
Rigidbody weird effect. 3 Answers
Help with getting my player to stop moving when they hit a wall? 0 Answers