Category: Delphi Mobile

  • How can I calculate distance between 2 TModel3D in Delphi FMX

    To calculate the distance between two TModel3D components in Delphi FMX, you can use the DistanceTo method provided by the TModel3D class. Here’s an example of how you can use the DistanceTo method to calculate the distance between two models; distance = Model1.DistanceTo(Model2); The DistanceTo method calculates the distance between the centers of the bounding…

  • How can I calculate collisions between 2 TModel3D in Delphi FMX

    To calculate collisions between two TModel3D components in Delphi FMX, you can use the intersection methods provided by the TModel3D class. Here’s an example of how you can use the IntersectsBox method to check for a collision between two models; if Model1.IntersectsBox(Model2) then begin //collision detected end; The IntersectsBox method returns True if the bounding…

  • How can I load 3D model and move it in Delphi FMX

    To load a 3D model and move it in Delphi FMX, you can use the TModel3D component and the TControl3D class. Here’s an example of how you can do this Drag a TModel3D component from the FireMonkey 3D Components palette onto your form. In the Model3D property of the TModel3D component, specify the path to…

  • How do I reveice push notification in Delphi

    To receive push notifications in Delphi, you can use the Firebase Cloud Messaging (FCM) service. FCM is a cross-platform messaging solution that allows you to send and receive notifications on your mobile devices, as well as send messages to other devices that are running your app. Here is an example of how you can use…