Get access to over 100 FireMonkey cross platform samples for Android, IOS, OSX, Windows, and Linux!

AndroidAppmethodCode SnippetDelphiDemoFiremonkeyIOSOSXWindows

Physics Engine Vehicle Simulation Demo For Delphi XE6 Firemonkey On Android And IOS

Delphi XE6 Firemonkey Car Physics Box2dOne of the test projects in the Box2d for Delphi Firemonkey physics engine is a simple side view car simulation. Box2d for Delphi Firemonkey runs in Delphi XE5 and Delphi XE6 on Android, IOS, Windows, and OSX. The simulation has all kinds of different physics objects implemented in it including a ground plane with hills and ditches, a bridge, a couple jumps, and boxes to drive though. The vehicle consists of a body with two wheels. There is a Box2d for AS3 tutorial which shows how to create the car using Box2d objects from scratch. If you want to add motors and shocks to the vehicle there is a second tutorial in AS3 that shows you how to do that. AS3 can be easily translated to Object Pascal. This car test project could be used as the basis for creating a game for Android or IOS or any number of other simulation uses. You could easily modify this sample to have the camera keep the car at the center of the screen and then load multiple levels with different ground configurations.

Download Box2d For Delphi Firemonkey and start modifying the Car test project to suit your needs.


Have Delphi Firemonkey questions? Ask and get answers on StackOverflow.

Related posts

FireMonkey 10.4.2 Features Updated iOS 14, Android 11, And macOS 11 Support Plus Hundreds Of Fixes


Ryzen 9 5950x: One Billion Lines Of Delphi Code Compiled In ~5 Minutes On 16 Cores


DelphiCon 2020 FireMonkey Sessions Available Starting November 19


Powerful Commercial Gorilla3D Framework Upgraded For Delphi FireMonkey On Windows And Android

Sign up for our Newsletter and
stay informed

Leave a Reply