Search Issue Tracker
Fixed in 5.0.X
Votes
0
Found in
5.0.0b2
Issue ID
630639
Regression
No
Physics.IgnoreCollision(Collider, Collider) sometimes affects wrong colliders
To Reproduce:
1. Run scene 'BOSS ONE' in the attached project.
2. Notice that after ~140 red bullets are fired collision breaks between some of them and the large white cube.
3. Decreasing the time after which the white cubes are destroyed (shotLife in BulletHell.cs) seems to have an effect on how soon collision breaks, if its 0 red cubes begin flying through the large cube after ~10 shots.
Also it has an effect on the amount of cubes which ignore collision, on 0 nearly no cubes actually collide in the beginning but afterwards its the same as on 10.
4. Remove the line:
Physics.IgnoreCollision(bullet.GetComponent<Collider>(), collider);
from SpawnBullet() in BulletHell.cs (line 54).
Not sure is this exactly what's causing this, but there nothing else in any script in the scene what might effect collision, except a similar statement, on the small red cube which fires the bullets.
Changing the layer to anything else but 'projectiles' seems to have strange effect on the bullet trajectory, they fly into random directions after exiting the large cube instead of going straight.
Collision detection setting seems to have no noticeable effect.
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Redoing creation of Sub Scenes and Cube GameObjects in Hierarchy throws “Assertion failed on expression: 'targetScene != nullptr’” error in Console window
- Selecting “New Sub Scene” after assigning “New Scene” in Sub Scene Script Component throws “Destroying GameObjects immediately is not permitted” in the Console window
- Shader Graph "Zoom Step Size" can be set to 0 even though the zoom still works
- Enabling/Disabling the Deprecated Nodes doesn't apply to the opened Shader Graph unless any Variable is added to the Blackboard
- Group Selection title text size is smaller in renaming than the actual font size
Add comment