cocos-engine icon indicating copy to clipboard operation
cocos-engine copied to clipboard

PhysicsRayResult.hitNormal wrong

Open Canvasfull opened this issue 2 years ago • 1 comments

Cocos Creator version

3.7.0

System information

Mac editor

Issue description

When using Bullet Based Physics System, hitNormal always (0, 0, 0). Screenshot 2023-01-10 at 00 13 32

When using the PhysX engine, hitNormal has a slight offset. Screenshot 2023-01-10 at 00 15 48

Screenshot 2023-01-10 at 00 16 11

Is it normal that switching the physics engine requires a restart of the editor?

Relevant error log output

No response

Steps to reproduce

  1. Use Gizmo to print hitNormal's rays to see the results.

Minimal reproduction project

test-hit-normal.zip

Canvasfull avatar Jan 09 '23 16:01 Canvasfull

I don't quite understand the issue.

minggo avatar Apr 03 '24 07:04 minggo