Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revisionBoth sides next revision
1.0.0:physics [2023/03/16 09:04] – [Colliders] admin1.0.0:physics [2023/03/16 09:13] – [Colliders] admin
Line 134: Line 134:
  
 Derived components of **TControl3D**, **TCustomMesh** and **TGorillaMesh** are supported for colliders. But for mesh or terrain colliders only TCustomMesh and TGorillaMesh/TGorillaModel are allowed. Other components do not have any vertex information. Derived components of **TControl3D**, **TCustomMesh** and **TGorillaMesh** are supported for colliders. But for mesh or terrain colliders only TCustomMesh and TGorillaMesh/TGorillaModel are allowed. Other components do not have any vertex information.
 +
 +==== ColliderSettings / ColliderPrefab ====
 +
 +Registering a collider for a 3D object expects collider settings (TGorillaColliderSettings) or a collider prefab (TGorillaPhysicsColliderPrefab).
 +
 +The collider prefab is a collection item for design time usage. It will automatically register a collider settings (TGorillaColliderSettings) for you when the physics system getting started.
 +
 +While the collider settings (TGorillaColliderSettings) is the core structure for collider registration.
 +
 +It gives you a number of possible settings:
 +
 +^Property ^Description^
 +|_Type|TGorillaPhysicsBodyType (static, dynamic or kinematic)|
 +|LockRotAxisX|Locked rotation on the x axis.|
 +|LockRotAxisY|Locked rotation on the y axis.|
 +|LockRotAxisZ|Locked rotation on the z axis.|
 +|LockMoveAxisX|Locked translation on the x axis.|
 +|LockMoveAxisY|Locked translation on the y axis.|
 +|LockMoveAxisZ|Locked translation on the z axis.|
 +|LinearDamping|Linear Damping controls how much the physics body or constraint resists translation.|
 +|AngularDamping|Angular Damping controls how much they resist rotating. |
 +|Slop|Additional slop value, which will be added to the computed penetration depth on collision.|
 +|AllowSubColliders|If a object hierarchy is provided as control, it will try to add the same kind of collider for all sub-elements. Caution: This may produce unexpected behaviour especially on dynamic colliders.|
 +|AllowSleep|Allows a body to go in sleeping mode and save resources. By default TRUE.|
 +|Active|Is body enabled for physics computation.|
 +|Data|Setup colliderdata: friction, restitution, density, sensor ...|
 ===== Threading ===== ===== Threading =====