Quantcast
Channel: Questions in topic: "ignorecollision"
Viewing all articles
Browse latest Browse all 148

How do I call OnEnable on a CharacterController?

$
0
0
Hi, There is a function that I wanted to call whenever CharacterController got enable. How can I achieve this? To be more specific, when a Character do certain Animation, the Character will not be affected by Gravity, and will be able to go through certain collider. As such CharacterController will be temporarily disabled. However, because CharacterController have IgnoreCollision set to it, when it became enable, IgnoreCollision got reset and I have to call it again. As an alternative, how can I make CharacterController just on this character ignore gravity? THX

Viewing all articles
Browse latest Browse all 148

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>