Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
physics [2020/05/24 13:19] – [Colliders] admin | physics [2020/05/24 13:25] – [Callbacks] admin | ||
---|---|---|---|
Line 20: | Line 20: | ||
</ | </ | ||
+ | |||
+ | ==== Start ==== | ||
+ | |||
+ | To enable physics computation you have to enable the controller, by simply activating it. | ||
+ | |||
+ | <file pascal> | ||
+ | GorillaPhysicsSystem1.Active := true; | ||
+ | </ | ||
==== Iterations ==== | ==== Iterations ==== | ||
Line 99: | Line 107: | ||
[[# | [[# | ||
- | Derived components of TCustomMesh and TGorillaMesh are supported for colliders. | + | Derived components of **TCustomMesh** and **TGorillaMesh** are supported for colliders. |
===== Threading ===== | ===== Threading ===== | ||
Line 198: | Line 206: | ||
Those callbacks will give you the both colliding elements at this moment of TQ3Body type (Gorilla.Physics.Q3.Body). | Those callbacks will give you the both colliding elements at this moment of TQ3Body type (Gorilla.Physics.Q3.Body). | ||
Each body has an untyped pointer property " | Each body has an untyped pointer property " | ||
+ | |||
+ | <file pascal> | ||
+ | procedure TUIMainWin.doOnBeginContact(const ABodyA, ABodyB : TQ3Body); | ||
+ | begin | ||
+ | if TComponent(ABodyA.UserData).Name.Equals(' | ||
+ | begin | ||
+ | FMX.Types.Log.D(' | ||
+ | [TComponent(ABodyA.UserData).Name, | ||
+ | end; | ||
+ | end; | ||
+ | </ | ||
===== Remote-Control ===== | ===== Remote-Control ===== | ||