stride icon indicating copy to clipboard operation
stride copied to clipboard

PhysicsProcessor ParentScene may be initialized to null

Open manio143 opened this issue 4 years ago • 4 comments

Release Type: GitHub

Version: master

Platform(s): N/A

Describe the bug

I'm not currently sure why or if always but on the below line the parentScene is not set, which results in later inability to display debug colliders in game. https://github.com/stride3d/stride/blob/74b2b4ad07d7811688e540259cedb8abb95ead9f/sources/engine/Stride.Physics/Engine/PhysicsProcessor.cs#L215

To Reproduce Steps to reproduce the behavior:

  1. Create a new project
  2. Add a static collider to the ground
  3. Add Debug physics shapes script
  4. Launch game and press Ctrl+Shift+P

Expected behavior Debug collider shapes are displayed.

Additional context The issue can be easily mitigated by adding

SceneSystem.SceneInstance.GetProcessor<PhysicsProcessor>().ParentScene = Entity.Scene;

to the beginning of the debug script.

manio143 avatar Feb 16 '21 22:02 manio143

Hi! Is this still an issue? If so, I would like to take this one. @manio143 @Eideren

kizilsum avatar Aug 04 '22 11:08 kizilsum

@kizilsum Sure, go ahead ! Just to clarify, the help wanted message removed above is because anyone can now freely contribute to the engine. You can open PRs for any issue you want, right now the engine doesn't have a lot of traffic so you can just do so without notifying us first if you don't want to :)

Eideren avatar Aug 04 '22 11:08 Eideren