UPBGE / upbge

UPBGE, the best integrated game engine in Blender
https://upbge.org
Other
1.43k stars 180 forks source link

Reinstancing physics mesh does not work if physics_type is set to sensor (only on Windows) #1806

Closed wetoo-cando closed 1 year ago

wetoo-cando commented 1 year ago

Blend file: test_animation_rendering_windows_question.zip

I am on Windows (UPBGE 0.3.0).

In the blend file attached above, the blender object collision_mesh_index_fingertip has a python component called reinstance_mesh.py. In the game, the mesh of collision_mesh_index_fingertip should get re-instanced to the one from the object anchor_index_finger. This does not work when for collision_mesh_index_fingertip the Game Physics --> Physics type is set to Sensor. When Render properties --> Game debug --> Physics visualization is turned ON, normally the re-instanced mesh should be visible in red color. However it is not visible at all.

Surprisingly, this same thing works on Linux, i.e. the re-instanced mesh is visible in red color.

Any idea why it does not work on Windows?

wetoo-cando commented 1 year ago

It works today, don't know what was wrong yesterday.