https://github.com/jakedaspud/physics-ca5-cpp
Physics Friction and Sliding / Rolling Simulation. C++ instead of Mathematica!
https://github.com/jakedaspud/physics-ca5-cpp
Last synced: about 1 year ago
JSON representation
Physics Friction and Sliding / Rolling Simulation. C++ instead of Mathematica!
- Host: GitHub
- URL: https://github.com/jakedaspud/physics-ca5-cpp
- Owner: JakeDaSpud
- Created: 2024-11-09T00:14:05.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2024-11-09T23:58:48.000Z (over 1 year ago)
- Last Synced: 2024-11-28T12:46:12.454Z (over 1 year ago)
- Language: C++
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Friction Physics Simulation
I have to make a Physics simulation in MATHEMATICA (ew!) and I really dislike it, notebooks in general.
So I'm trying to make Vector2, Vector3, and the whole simulation in C++ first!
---
# Classes
| Class | Description |
| --- | --- |
| *main* | Where the simulation will be processed |
| *vec3* and *vec2* | 2D and 3D Vector implementations, with + - / \* \[] operators, dot(vec), cross(vec), magnitude(), and normalize() |
---
# Variables and Initial Conditions
current normal,
current position,
current velocity,
current force due to gravity in direction of plane,
current force due to gravity in direction of normal,
current normal force,
current frictional force,
current net force,
current mass,
current acceleration,
etc.