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:20] – [Colliders] admin | physics [2020/05/24 13:28] – [Remote-Control] admin | ||
---|---|---|---|
Line 206: | 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 not Assigned(ABodyA.UserDataType) then | ||
+ | Exit; | ||
+ | if not Assigned(ABodyB.UserDataType) then | ||
+ | Exit; | ||
+ | | ||
+ | if TComponent(ABodyA.UserData).Name.Equals(' | ||
+ | begin | ||
+ | FMX.Types.Log.D(' | ||
+ | [TComponent(ABodyA.UserData).Name, | ||
+ | end | ||
+ | else | ||
+ | begin | ||
+ | FMX.Types.Log.D('< | ||
+ | [ABodyA.UserDataType^.Name, | ||
+ | end; | ||
+ | end; | ||
+ | </ | ||
===== Remote-Control ===== | ===== Remote-Control ===== | ||
Line 219: | Line 240: | ||
**__CAUTION: | **__CAUTION: | ||
+ | |||
+ | <file pascal> | ||
+ | GorillaPhysicsSystem1.RemoteBodyImpulse(GorillaCube1, | ||
+ | </ | ||
Next step: [[fmodaudio|FMOD Audio]] | Next step: [[fmodaudio|FMOD Audio]] |