Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/emmanuelmess/constraintbasedsimulator
https://github.com/emmanuelmess/constraintbasedsimulator
jax python3 qt6
Last synced: about 4 hours ago
JSON representation
- Host: GitHub
- URL: https://github.com/emmanuelmess/constraintbasedsimulator
- Owner: EmmanuelMess
- Created: 2023-07-09T18:02:44.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-03-03T19:54:21.000Z (9 months ago)
- Last Synced: 2024-03-04T03:21:12.144Z (9 months ago)
- Topics: jax, python3, qt6
- Language: Python
- Homepage:
- Size: 2.98 MB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Constraint Based Simulator
## Input file
```
A = (5.0, 5.0)
B = (7.5.0, 5.0)
C = (10.0, 5.0)
D = (5.0, 10.0)
E = (0.0, 5.0)
F = (5.0, 0.0)static A
static C
static D
static E
static Fshow circle A radius 2.5
constraint distance A B == 2.5
constraint force C B fun (t) -> sin(tau/4 + tau * 0.5 * t)
constraint force F B fun (t) -> sin(0 + tau * 0.5 * t)
constraint force E B fun (t) -> sin(tau*3/4 + tau * 0.5 * t)
constraint force D B fun (t) -> sin(tau/2 + tau * 0.5 * t)
```## Wireframe
## Screenshots
## Usage
### Setup
```bash
cd code
python3 -m venv venv
source venv/bin/activate
python3 -m pip install -r requirements.txt
```### Running
```bash
python3 code/constraint_based_simulator/main.py
```## Architecture
## Thanks
- [An Introduction to Physically Based Modeling: Constrained Dynamics](https://www.cs.cmu.edu/~baraff/pbm/constraints.pdf)
- [Lexy parser](https://github.com/foonathan/lexy)