2
$\begingroup$

I'm making a first person view game. I have an invisible collision body that I use for interaction with other objects. I have it so that the player can "shoot" cubes. How ever, if the player looks down and tries to shoot (for example if an enemy is coming close) the bullet gets bounced off the collision body for the character. Is it possible to make it so that my bullets can collide with everything except for the collision body? Thanks!

$\endgroup$

1 Answer 1

3
$\begingroup$

You can do this with collision mask and collision group.

enter image description here

These options are found in the physics panel. To fix your particular problem, select the invisible collision box for the player and put it in collision group 2.

Next, select the bullet and while holding Shift click on the 2nd box in collision mask. This will stop the bullet from colliding with anything in collision group/layer 2.

$\endgroup$
0

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .