Hi,
I'm not even sure the title is the issue but that's my best guess so far.
I have a first person shooter where I'm using a character controller for my player and I can shoot bullets from the gun which have a SphereCollider set to Trigger.
When I jump, if I shoot down, there a weird physics behavior which I can't understand. Here's a video [demonstration][1].
I tried these things already to no avail:
- disabling all the layer flags in physics so that player and bullets don't collide
- using Physics.IgnoreCollisions (Player's character controller, bullets sphere collider)
- I tried printing CharacterController.OnControllerColliderHit to the console, it shows floor, walls, etc. but bullets don't show up for some reason.
If I disable the sphere collider on bullets, then the behavior disappears, which means those sphere colliders (set to trigger) collide with something (I suspect my character controller) but I don't know how to disable this collision.
Help is appreciated!
[1]: https://www.youtube.com/watch?v=wxuJ9qOJfeU&feature=youtu.be
↧