Sets the overall accuracy of the rigid body dynamics simulation, as well as the accuracy of collisions.
To display: Choose Modify Rigid Body Edit Simulation Properties from the Simulate toolbar, or in the explorer, open the Operators folder for the current rigid body simulation Environment and click the Dynamics Operator icon.
To see parameters on the ODE Dynamics Operator property editor, see ODE Dynamics Operator Property Editor.
For more information, see Setting the Accuracy of Rigid Body Simulations [ Simulation and Effects].
Sets the collision accuracy for all colliding rigid bodies in the simulation environment. You may want to set the collision accuracy level for fast-moving rigid bodies, or for rigid bodies that use their actual shape as the collision geometry, especially for the ODE dynamics engine.
For more information, see Setting the Accuracy of Collisions for PhysX [ Simulation and Effects].
The parameters on this page are settings for those who are using the PhysX engine at an advanced level. For example, you may need these parameters for when you're developing games, so that you can have the same settings here as in your game engine.
When a rigid body does not move for a period of time, it is assumed that it will remain immobile until an external force changes its state. This state of immobility is called sleeping. Sleeping means that the rigid body is not being simulated, which saves calculation time.
Sleeping can also help with stability. For example, if you do not want the bricks in a loosely constructed brick wall to start moving before a car hits the wall, you can make the bricks sleep at beginning of the simulation.
The simplest method used to determine if a rigid body can be sleeping is to set its linear and angular velocity thresholds. For a rigid body to be sleeping, it must have a linear velocity lower than its Sleeping Squared Linear Velocity Threshold value and an angular velocity lower than its Sleeping Squared Angular Velocity Threshold.
Continuous collision detection is useful for fast moving objects. With traditional collision detection, fast moving objects can pass through other objects during a single time step. Imagine a bullet traveling towards a thin metal plate: in the first time step it would be on one side, and in the next time step it would be on the other. The PhysX engine would never detect a collision, so it would not know that it needs to change the motion of the bullet.
To deal with this problem, you can select the Continuous Collision option. Instead of testing for collision at discrete points, it tests an extruded volume which represents the object's motion during the whole time step. If a collision is detected, the time of impact can be computed and the object's motion is modified appropriately.
When you stack rigid bodies, the PhysX engine deals with inaccuracy by letting them slightly interpenetrate each other. You can determine the amount of interpenetration that is permitted at a scene level by setting the Skin Width value. Too much interpenetration can make a collision look incorrect, but not enough interpenetration can be worse: objects may repel each other to the point where they separate, and then fall back down on each other in a subsequent time frame. This leads to jittering.
The amount of interpenetration that works best in your scene depends on many things, such as the size of the objects and the stability of the simulation. The stability is usually determined by the gravity, as well as the time step size: lower gravity and smaller time steps typically result in more stable simulations.
You can scale the magnitude of static and dynamic friction of all the rigid bodies in your scene at once using the Dynamic Friction Scaling and Static Friction Scaling parameters.
Static friction is the force that opposes a rigid body from changing its state from resting to motion. For instance, if you place a ball on an sloped plane, the static friction determines how easily the ball begins its initial slide or roll down the plane. Static friction has little or no effect after an object is moving.
Dynamic (also known as kinetic) friction is how much a moving rigid body resists movement against another rigid body's surface. This is the force that tends to slow down a rigid body in motion. This force is generally proportional to any force that has been applied to the rigid body, so you can think of it as the ratio of frictional force to the applied force on the rigid body.
Setting these two parameters halves the static and dynamic friction values on all materials in the simulation (the default for both parameters is 1). An example use for this scaling might be in a racing game: you can gradually make all rigid bodies slippery if conditions become wet or icy, then gradually return them to their default values as conditions return to normal.
Except where otherwise noted, this work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License