Comments (5)
Oh wow thanks for the fast response. I'll take a look and see if I can port it myself, then.
from qu3e.
You can add in variable timestep if you like. The only downside is the lack of floating point determinism (which may or may not matter depending on what you're doing).
from qu3e.
I'd be happy with an alternate C api. I don't have the time to do this myself but the code here is written in a way that lends itself to a port. It could be straight-forward of a task. If anyone coming along and reading here, contributing a C api could be a great way to contribute to the library! I'd be happy to take a look at and merge a pull request for this.
from qu3e.
Cool! I would suggest looking mostly at q3scene.h and q3body.h, and then perhaps wrapping whatever you like in a C api, perhaps in a header (like q3_c.h or something). The math is already in C format. The only other file I could imagine someone would want exposed is q3Box.h, but scene and body are the main two. I think that's all anyone would need to know to as far as the API goes :)
from qu3e.
Good to know!
Another question: Is it trivial to implement variable timestep? It seems like I just have to pass in a dt
in q3Scene::Step()
and set it here:
Line 89 in a7c7199
Would this work as expected? Or would there be side effects?
from qu3e.
Related Issues (20)
- How could I implement a vertically-sliding door? HOT 1
- Demo does not compile on Windows
- q3BroadPhase::InsertBox shouldn't call BufferMove for static bodies HOT 1
- Would qu3e be a good base for "distributed physics"? HOT 3
- Is it possible to set up without ImGUI? HOT 6
- assert (axis != 0) HOT 7
- qu3e for a voxel engine? HOT 4
- Position of collision objects being null HOT 21
- Size of box HOT 1
- I dont understand rotating boxes HOT 5
- Can this physics engine change its timescale on the fly? HOT 3
- Is memory management needed?
- q3Scene.Step is freezing
- -
- A simple box stack is not stable without sleeping
- This project is still alive? HOT 4
- How can I read the XYZ euler angles from a q3Mat3? HOT 1
- Sliding boxes "catch" on edges in floor HOT 7
- linker errors? HOT 1
- how do I import HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from qu3e.