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:00] – [Override Collider-Registration] admin1.0.0:physics [2023/03/16 09:00] – [Override Collider-Registration] admin
Line 342: Line 342:
  
   // Add a sphere collider for each instance with the maximum size of a side as radius   // Add a sphere collider for each instance with the maximum size of a side as radius
 +  // or use another internal registration method, like DoAddBoxCollider, DoAddCapsuleCollider, ...
   DoAddSphereCollider(AData, TypeInfo(TGorillaMeshInstance), APrefab,   DoAddSphereCollider(AData, TypeInfo(TGorillaMeshInstance), APrefab,
     LTransform, Max(ASize.X, Max(ASize.Y, ASize.Z)), ABody);     LTransform, Max(ASize.X, Max(ASize.Y, ASize.Z)), ABody);