- Home /
Is there a way for a non-kinematic rigid body to be hit by a raycast?,Is there a way for a non kinematic rigidbody to be be hit by a raycast?
So im following a tutorial of a guy using raycast on an fps. The enemies use a rigidbody so that they can be ragdolls(ish) after being killed. However on my end the raycasts do not hit unless kinematics are turned on, making a ragdoll impossible. I'm thinking of turning off kinematics as soon as the enemy is killed, but why would my raycasts not work when kinematics are turned off?,I'm following a tutorial of a guy using raycast on enemies with rigid bodies with kinematics turned off so it seems possible, however on my end turning off kinematics is to only way for the game object to be detected by the raycast. For the purposes of his tutorial, the kinematics need to be turned off to have the enemy body ragdoll after it is killed. (tutorial in question https://youtu.be/Sqb-Ue7wpsI?t=23517)
Answer by brandonmierzwa1 · Sep 29, 2021 at 06:38 PM
Sorry to respond this a year later, but I'm having the exact same problem. Could someone help?
Your answer
Follow this Question
Related Questions
FPS rigidbody problem 0 Answers
Drag Rigid Bodies First Person Controller.js 0 Answers
Attaching 2 objects using joints and raycasting 0 Answers
How to get right Physics with Follow on click 1 Answer
RigidbodyFPSWalker physics problem 0 Answers