Timeline for In Physx, A collision is detected in onContact() before the shape collides
Current License: CC BY-SA 4.0
10 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Dec 11, 2021 at 13:29 | comment | added | Vaillancourt♦ | I admit I don't know what goes on there. | |
| Dec 11, 2021 at 5:42 | comment | added | 문형준 | There was no collision in the view in the physx visual debugger. | |
| Dec 11, 2021 at 3:59 | comment | added | 문형준 | Mainapp->update() and mainapp->render() are executed every 60 frames, and simulation is also executed every 60 frames. Why are they different? | |
| Dec 11, 2021 at 3:58 | history | edited | 문형준 | CC BY-SA 4.0 | added 155 characters in body |
| Dec 11, 2021 at 3:15 | comment | added | Vaillancourt♦ | Yes, the simulation occurs before it is rendered. When you get to the first breakpoint, then add another breakpoint at FrameTimeDefault = 0.f;; if you're lucky, you'll see the two surfaces touch (otherwise, the ball will have bounced off of the plane already). | |
| Dec 11, 2021 at 2:30 | history | edited | 문형준 | CC BY-SA 4.0 | added 425 characters in body |
| Dec 11, 2021 at 2:29 | comment | added | 문형준 | Do you mean it is because the difference between physics simulation and drawing because of the frame? i edited my loop code | |
| Dec 11, 2021 at 2:06 | comment | added | Vaillancourt♦ | Are you sure that you're not drawing the frame before the collision is detected? I.e. in the game loop, you'd first do the collision detection/resolution/step, only then you would draw the result of the step. | |
| Dec 11, 2021 at 0:53 | history | edited | 문형준 | CC BY-SA 4.0 | added 1714 characters in body |
| Dec 11, 2021 at 0:38 | history | asked | 문형준 | CC BY-SA 4.0 |