Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
1.0.0:physics [2023/03/16 08:58] – [Example] 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);
 end; end;
 </file> </file>
 +
 +When you have declared this kind of helper class in your unit, the TGorillaPhysicsSystem component will then show you a new method to be callable "AddInstanceCollider".
 +
  
 Next step: [[fmodaudio|FMOD Audio]] Next step: [[fmodaudio|FMOD Audio]]