Search Issue Tracker

By Design

Votes

0

Found in

2023.1.13f1

2023.2.0b9

2023.3.0a5

Issue ID

UUM-48973

Regression

No

ImmediateTransform rotation value doesn’t match Transform.rotation when using a Capsule GameObject with the GenerateContacts API

--

-

How to reproduce:
1. Open the user’s attached “PhysX 2D 3D.zip” project
2. Enter Play Mode
3. Observe the red line that shows a contact inside the cube
4. Move the “Main” GameObject inside of the “Target” GameObject and observe the red line inside the cube

Expected result: The red line doesn’t appear when GameObjects doesn’t have any contact also, the rotation of the red line matches the “Target” GameObject rotation
Actual result: The red line appears when GameObjects doesn’t have any contact also, the rotation of the red line doesn’t match the “Target” GameObject rotation

Reproducible with: 2023.1.13f1, 2023.2.0b9, 2023.3.0a5
Could not test with: 2021.3.30f1, 2022.3.9f1 (Errors when downgrading the project)

Reproduced on: macOS 13.4.1 (Intel)
Not reproducible on: No other environment tested

Note: not reproducible with other shapes

  1. Resolution Note:

    This is not a bug really, as in PhysX capsules are oriented along X so there's an extra rotation required to have them erected along Y. See this: https://gameworksdocs.nvidia.com/PhysX/4.1/documentation/physxguide/Manual/Geometry.html#capsules

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.