[−][src]Module box2d_rs::b2_settings
Constants
B2_AABB_EXTENSION | This is used to fatten AABBs in the dynamic tree. This allows proxies to move by a small amount without triggering a tree adjustment. This is in meters. |
B2_AABB_MULTIPLIER | This is used to fatten AABBs in the dynamic tree. This is used to predict the future position based on the current displacement. This is a dimensionless multiplier. |
B2_ANGULAR_SLEEP_TOLERANCE | A body cannot sleep if its angular velocity is above this tolerance. |
B2_ANGULAR_SLOP | A small angle used as a collision and constraint tolerance. Usually it is chosen to be numerically significant, but visually insignificant. |
B2_BAUMGARTE | This scale factor controls how fast overlap is resolved. Ideally this would be 1 so that overlap is removed in one time step. However using values close to 1 often lead to overshoot. |
B2_DEBUG | |
B2_EPSILON | |
B2_LINEAR_SLEEP_TOLERANCE | A body cannot sleep if its linear velocity is above this tolerance. |
B2_LINEAR_SLOP | A small length used as a collision and constraint tolerance. Usually it is chosen to be numerically significant, but visually insignificant. |
B2_MAX_ANGULAR_CORRECTION | The maximum angular position correction used when solving constraints. This helps to prevent overshoot. |
B2_MAX_FLOAT | |
B2_MAX_LINEAR_CORRECTION | The maximum linear position correction used when solving constraints. This helps to prevent overshoot. |
B2_MAX_MANIFOLD_POINTS | The maximum number of contact points between two convex shapes. Do not change this value. |
B2_MAX_POLYGON_VERTICES | The maximum number of vertices on a convex polygon. You cannot increase this too much because b2BlockAllocator has a maximum object size. |
B2_MAX_ROTATION | The maximum angular velocity of a body. This limit is very large and is used to prevent numerical problems. You shouldn't need to adjust this. |
B2_MAX_ROTATION_SQUARED | |
B2_MAX_SUB_STEPS | Maximum number of sub-steps per contact in continuous physics simulation. |
B2_MAX_TOICONTACTS | Maximum number of contacts to be handled to solve a TOI impact. |
B2_MAX_TRANSLATION | The maximum linear velocity of a body. This limit is very large and is used to prevent numerical problems. You shouldn't need to adjust this. |
B2_MAX_TRANSLATION_SQUARED | |
B2_PI | |
B2_POLYGON_RADIUS | The radius of the polygon/edge shape skin. This should not be modified. Making this smaller means polygons will have an insufficient buffer for continuous collision. Making it larger may create artifacts for vertex collision. |
B2_TIME_TO_SLEEP | The time that a body must be still before it will go to sleep. |
B2_TOI_BAUMGARTE | |
B2_VELOCITY_THRESHOLD | A velocity threshold for elastic collisions. Any collision with a relative linear velocity below this threshold will be treated as inelastic. |
Traits
UserDataType |
Functions
b2_assert | |
b2_not_used | |
upgrade | |
upgrade_opt |