原文地址:http://blog.csdn.net/heartrude/article/details/7770344
这里记录了在文档阅读过程中对于SDK得参数的理解。
先给一份全的参数表,后续慢慢追加
Parameter | Default Value | Description |
NX_PENALTY_FORCE |
| DEPRECATED |
NX_SKIN_WIDTH: 皮肤宽度。主要是刚体堆叠计算的问题。 如果没有皮肤,两个刚体堆叠过程中, 由于步长很有可能导致计算结果两个物体相互穿过。引发弹跳。 这个如果没有SKIN将会永久持续。 | 0.025 | Default value for NxShapeDesc::skinWidth see API reference for more info. (range: [0, inf) Unit: distance. SeeSkinWidth. |
|
|
|
NX_DEFAULT_SLEEP_LIN_VEL_SQUARED | (0.15*0.15) | The default linear velocity, squared, below which objects start going to sleep. (range: [0, inf)) |
NX_DEFAULT_SLEEP_ANG_VEL_SQUARED | (0.14*0.14) | The default angular velocity, squared, below which objects start going to sleep. (range: [0, inf)) |
|
|
|
NX_BOUNCE_TRESHOLD | -2 | A contact with a relative velocity below this will not bounce. (range: (-inf, 0]) |
|
|
|
NX_DYN_FRICT_SCALING | 1 | This lets the user scale the magnitude of the dynamic friction applied to all objects. (range: [0, inf)) |
NX_STA_FRICT_SCALING | 1 | This lets the user scale the magnitude of the static friction applied to all objects. (range: [0, inf)) |
|
|
|
NX_MAX_ANGULAR_VELOCITY | 7 | See API Reference for NxBody::setMaxAngularVelocity() for details. |
|
|
|
NX_CONTINUOUS_CD | 0 | Enable/disable continuous collision detection (0.0f to disable) |
|
|
|
NX_VISUALIZATION_SCALE | 0 | This overall visualization scale gets multiplied with the individual scales. Setting to zero turns off debug visualizations. |
|
|
|
NX_VISUALIZE_WORLD_AXES | 0 | Visualize the world axes. |
|
|
|
NX_VISUALIZE_BODY_AXES | 0 | Visualize a body's axes. |
NX_VISUALIZE_BODY_MASS_AXES | 0 | Visualize a body's mass axes. |
NX_VISUALIZE_BODY_LIN_VELOCITY | 0 | Visualize the bodies' linear velocity. |
NX_VISUALIZE_BODY_ANG_VELOCITY | 0 | Visualize the bodies' angular velocity. |
NX_VISUALIZE_BODY_JOINT_GROUPS | 0 | Visualize joint groups. |
NX_VISUALIZE_JOINT_LOCAL_AXES | 0 | Visualize local joint axes. |
NX_VISUALIZE_JOINT_WORLD_AXES | 0 | Visualize joint world axes. |
NX_VISUALIZE_JOINT_LIMITS | 0 | Visualize joint limits. |
|
|
|
NX_VISUALIZE_CONTACT_POINT | 0 | Visualize contact points. |
NX_VISUALIZE_CONTACT_NORMAL | 0 | Visualize contact normals. |
NX_VISUALIZE_CONTACT_ERROR | 0 | Visualize contact errors. |
NX_VISUALIZE_CONTACT_FORCE | 0 | Visualize contact forces. |
|
|
|
NX_VISUALIZE_ACTOR_AXES | 0 | Visualize actor axes. |
|
|
|
NX_VISUALIZE_COLLISION_AABBS | 0 | Visualize bounds (AABBs in world space). |
NX_VISUALIZE_COLLISION_SHAPES | 0 | Visualize shape. |
NX_VISUALIZE_COLLISION_AXES | 0 | Visualize shape axes. |
NX_VISUALIZE_COLLISION_COMPOUNDS | 0 | Visualize compound (compound AABBs in world space). |
NX_VISUALIZE_COLLISION_VNORMALS | 0 | Visualize mesh & convex vertex normals. |
NX_VISUALIZE_COLLISION_FNORMALS | 0 | Visualize mesh & convex face normals. |
NX_VISUALIZE_COLLISION_EDGES | 0 | Visualize active edges for meshes. |
NX_VISUALIZE_COLLISION_SPHERES | 0 | Visualize bounding spheres. |
|
|
|
NX_VISUALIZE_COLLISION_STATIC | 0 | Visualize static pruning structures. |
NX_VISUALIZE_COLLISION_DYNAMIC | 0 | Visualize dynamic pruning structures. |
NX_VISUALIZE_COLLISION_FREE | 0 | Visualize "free" pruning structures. |
NX_VISUALIZE_COLLISION_CCD | 0 | Visualize CCD tests. |
NX_VISUALIZE_COLLISION_SKELETONS | 0 | Visualize CCD skeletons. |
|
|
|
NX_VISUALIZE_FLUID_EMITTERS | 0 | Visualize emitter. |
NX_VISUALIZE_FLUID_POSITION | 0 | Visualize particle position. |
NX_VISUALIZE_FLUID_VELOCITY | 0 | Visualize particle velocity. |
NX_VISUALIZE_FLUID_KERNEL_RADIUS | 0 | Visualize particle kernel radius. |
NX_VISUALIZE_FLUID_BOUNDS | 0 | Visualize fluid AABB. |
NX_VISUALIZE_FLUID_PACKETS | 0 | Visualize fluid packets. |
NX_VISUALIZE_FLUID_MOTION_LIMIT | 0 | Visualize fluid motion limits. |
NX_VISUALIZE_FLUID_DYN_COLLISION | 0 | Visualize fluid dynamic mesh collision. |
NX_VISUALIZE_FLUID_STC_COLLISION | 0 | Not implemented: Visualize fluid static collision. |
NX_VISUALIZE_FLUID_MESH_PACKETS | 0 | Visualize available fluid mesh packets. |
NX_VISUALIZE_FLUID_DRAINS | 0 | Visualize fluid drain shapes. |
NX_VISUALIZE_FLUID_PACKET_DATA | 0 | Visualize fluid data packets. |
|
|
|
NX_VISUALIZE_CLOTH_MESH | 0 | Visualize cloth meshes. |
NX_VISUALIZE_CLOTH_COLLISIONS | 0 | Visualize cloth rigid body collision. |
NX_VISUALIZE_CLOTH_SELFCOLLISIONS | 0 | Visualize cloth self collision. |
NX_VISUALIZE_CLOTH_WORKPACKETS | 0 | Visualize cloth clustering for the PPU. |
NX_VISUALIZE_CLOTH_SLEEP | 0 | Visualize cloth sleeping. |
NX_VISUALIZE_CLOTH_SLEEP_VERTEX | 0 | Visualize cloth sleeping with full per-vertex information. |
NX_VISUALIZE_CLOTH_TEARABLE_VERTICES | 0 | Visualize tearable cloth vertices. |
NX_VISUALIZE_CLOTH_TEARING | 0 | Visualize cloth tearing. |
NX_VISUALIZE_CLOTH_ATTACHMENT | 0 | Visualize cloth attachments. |
NX_VISUALIZE_CLOTH_VALIDBOUNDS | 0 | Visualize cloth valid bounds. |
|
|
|
NX_VISUALIZE_SOFTBODY_MESH | 0 | Visualize soft body meshes. |
NX_VISUALIZE_SOFTBODY_COLLISIONS | 0 | Visualize soft body collisions with rigid bodies. |
NX_VISUALIZE_SOFTBODY_WORKPACKETS | 0 | Visualize soft body clustering for simulation on the PPU. |
NX_VISUALIZE_SOFTBODY_SLEEP | 0 | Visualize soft body sleeping. |
NX_VISUALIZE_SOFTBODY_SLEEP_VERTEX | 0 | Visualize soft body sleeping with full per-vertex information. |
NX_VISUALIZE_SOFTBODY_TEARABLE_VERTICES | 0 | Visualize tearable soft body vertices. |
NX_VISUALIZE_SOFTBODY_TEARING | 0 | Visualize soft body tearing. |
NX_VISUALIZE_SOFTBODY_ATTACHMENT | 0 | Visualize soft body attachments. |
NX_VISUALIZE_SOFTBODY_VALIDBOUNDS | 0 | Visualize soft body valid bounds. |
|
|
|
NX_ADAPTIVE_FORCE | 1 | Used to enable adaptive forces to accelerate convergence of the solver. |
NX_COLL_VETO_JOINTED | 1 | Controls default filtering for jointed bodies (true = collision disabled). |
NX_TRIGGER_TRIGGER_CALLBACK | 1 | Controls whether two touching triggers generate a callback or not. |
|
|
|
NX_SELECT_HW_ALGO | 0 | Internal parameter, used for debugging and testing. Not to be used. |
NX_VISUALIZE_ACTIVE_VERTICES | 0 | Internal parameter, used for debugging and testing. Not to be used. |
|
|
|
NX_CCD_EPSILON | 0.01 | Distance epsilon for CCD algorithm. |
NX_SOLVER_CONVERGENCE_THRESHOLD | 0 | Used to accelerate the solver. |
NX_BBOX_NOISE_LEVEL | 0.001 | Used to accelerate HW Broad Phase. |
NX_IMPLICIT_SWEEP_CACHE_SIZE | 5.0 | Used to set the sweep cache size. |
NX_DEFAULT_SLEEP_ENERGY | 0.005 | The default sleep energy threshold. Objects with an energy below this threshold are allowed to go to sleep. |
|
|
|
NX_CONSTANT_FLUID_MAX_PACKETS | 925 | Constant for the maximum number of packets per fluid. Used to compute the fluid packet buffer size in NxFluidPacketData. |
NX_CONSTANT_FLUID_MAX_PARTICLES_PER_STEP | 4096 | Constant for the maximum number of new fluid particles per frame. |
|
|
|
NX_VISUALIZE_FORCE_FIELDS | 0 | Force field visualization. |
|
|
|
NX_ASYNCHRONOUS_MESH_CREATION | 0 | [Experimental] Disables scene locks when creating/releasing meshes. |
NX_FORCE_FIELD_CUSTOM_KERNEL_EPSILON | 0.001 | Epsilon for custom force field kernels. |
NX_IMPROVED_SPRING_SOLVER | 1 | Enable/disable improved spring solver for joints and wheelshapes. |
NX_PARAMS_NUM_VALUES |
| This is not a parameter, it just records the current number of parameters. |