Replies: 1 comment
-
Hello @Zeblote, For the 1st case, PhysX provides contact modification, which allows you to modify the contact properties during collision detection. You can use the For the 2nd case, you can use trigger shapes to detect when an object enters a specific area. By setting up a trigger, you can apply a constant directional force to the object while it is inside the trigger volume. This can be done by modifying the contacts only when the trigger is hit. More information on triggers can be found here: For the 3rd case, you can use a similar trigger setup as in the 2nd case. When an object enters the trigger volume, you can apply a force that accelerates the object towards a specific point, simulating a spherical gravity generator. This can be achieved by applying forces to rigid bodies that hit the trigger. Detailed instructions on applying forces and torques are available here: I hope this helps! |
Beta Was this translation helpful? Give feedback.
-
Hi, I'm wondering what would be the recommended ways to do these 3 things:
Are there already snippets doing something like this? I didn't immediately find them but maybe I didn't look hard enough.
Beta Was this translation helpful? Give feedback.
All reactions