Skip to content

Utkarssh11/Vehicle-motion-dynamics

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

🚗 Vehicle Motion Dynamics

The Vehicle Motion Dynamics is a physics simulation created using p5.js, where users can build and interact with their own terrain while driving a car around it. This simulation utilizes Verlet integration, a technique for simulating physical systems without relying on physics engines.

Link : https://utkarssh11.github.io/Vehicle-motion-dynamics/

⚙️ Verlet Integration

Verlet integration is a numerical method that calculates the position and velocity of objects based on their previous states and the forces acting upon them. It is particularly useful for simulating the behavior of particles connected by constraints or springs, as is the case in this terrain simulation.

🏞️ Building the Terrain

To build the terrain, users can create vertices that define the shape of the landscape. These vertices are connected by constraints to form a network of interconnected particles. By manipulating these particles, users can create hills, valleys, ramps, or any other desired shape.

🚙 Car Simulation

The car in the simulation is represented by a separate particle that interacts with the terrain. It moves according to the forces acting upon it, such as gravity and collision with the terrain. Users can control the car's movements using input, allowing them to drive it around the terrain.

✨ Realistic Interactions

The Verlet integration technique used in this simulation enables realistic and dynamic interactions between the car and the terrain. As the car moves, it responds to the contours of the terrain, adjusting its position and velocity accordingly.

🎯 Features

  • Build custom terrains with interactive particle manipulation.
  • Drive a car around the terrain and experience realistic interactions.
  • User-friendly interface with intuitive controls.
  • Real-time physics simulation using Verlet integration.
  • No reliance on external physics engines.

📝 Usage

  1. Open the Vehicle Motion Dynamics simulation in a web browser.
  2. Use the available tools to build your desired terrain.
  3. Control the car's movements and explore the terrain using user input.
  4. Observe the realistic interactions between the car and the terrain.

🔧 Installation

  1. Clone the repository: https://github.com/Utkarssh11/Vehicle-motion-dynamics
  2. Open index.html in your preferred web browser.

🤝 Contributing

Contributions are welcome! If you have any ideas, suggestions, or improvements, please open an issue or submit a pull request.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published