CTruck 2D is a 2D, oldstyle, physically realistic 2D truck game. Predecessor of the CTruck3D vehicle simulator series. I wrote it from zero in C (+OpenGL&GLUT). It has ascii-art and nice graphics version, and a special funny version

It's a very basic thing: there are free rigid bodies and springs with strong attenuation/damping. It's very simple and very short code, and collisions of bodies with ground are good and stable.

A good simulation of this kind, however requires Lagrangian method. I proposed the Lagrange_motocross as an alternative of this kind. The code is not much longer but the it's overall more complicated, and collisions are a bad issue.

Project Samples

Project Activity

See All Activity >

Follow CTruck2D

CTruck2D Web Site

Other Useful Business Software
Build Securely on Azure with Proven Frameworks Icon
Build Securely on Azure with Proven Frameworks

Lay a foundation for success with Tested Reference Architectures developed by Fortinet’s experts. Learn more in this white paper.

Moving to the cloud brings new challenges. How can you manage a larger attack surface while ensuring great network performance? Turn to Fortinet’s Tested Reference Architectures, blueprints for designing and securing cloud environments built by cybersecurity experts. Learn more and explore use cases in this white paper.
Download Now
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of CTruck2D!

Additional Project Details

Operating Systems

BSD, Linux, Windows

Languages

English, Hungarian, Italian

Intended Audience

Automotive, Education

User Interface

GLUT, OpenGL

Programming Language

C, MATLAB

Related Categories

MATLAB Side-Scrolling Game, MATLAB Simulation Games, MATLAB Sports Games, C Side-Scrolling Game, C Simulation Games, C Sports Games

Registered

2010-09-06