Physics3D disable an rigidbody temporary #871
-
In Physics3D is it possible for me to disable a rigidbody/object temporary such that raycast will not choose that object? |
Beta Was this translation helpful? Give feedback.
Answered by
cchuicchui
Sep 29, 2022
Replies: 2 comments
-
setEnabled(false) ? |
Beta Was this translation helpful? Give feedback.
0 replies
-
I did search document and tried setActive() but it does not work. component->setEnable(false) works well. but u cannot call setEnable at the time u created the component otherwise null pointer exception will be thrown. Thanks. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
cchuicchui
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I did search document and tried setActive() but it does not work.
component->setEnable(false) works well. but u cannot call setEnable at the time u created the component otherwise null pointer exception will be thrown.
Thanks.