steam-audio icon indicating copy to clipboard operation
steam-audio copied to clipboard

[Unity] Occlusion not working PhysicsScene/Local physics.

Open CryptoJanne opened this issue 2 years ago • 2 comments

Occlusion does not currently work if one is using PhysicsScene.Simulate() to simulate a local physicsscene. The issue is that the raycasts which determines occlusion is using Physics.Raycast, which dont work in simulated physics. PhysicsScene.Raycast does.

An option to choose would be nice. In the meantime, im having a hard time tracking down where in the code the rays are being shot. Any help to locate the specific code is greatly appreciated.

CryptoJanne avatar Aug 23 '22 17:08 CryptoJanne

The rays are traced in the C# functions SteamAudioManager.ClosestHit and SteamAudioManager.AnyHit. Let us know if modifying these functions lets you resolve your issue, or if you have any other questions. If you'd like, you can also open a pull request for us to look at.

lakulish avatar Oct 10 '22 19:10 lakulish

This issue has been automatically marked stale, and will automatically be closed in 30 days if no activity occurs.

github-actions[bot] avatar Jun 02 '24 16:06 github-actions[bot]