Git Product home page Git Product logo

Comments (5)

rweichler avatar rweichler commented on August 31, 2024 2

Oh wow thanks for the fast response. I'll take a look and see if I can port it myself, then.

from qu3e.

RandyGaul avatar RandyGaul commented on August 31, 2024 1

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.

RandyGaul avatar RandyGaul commented on August 31, 2024

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.

RandyGaul avatar RandyGaul commented on August 31, 2024

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.

rweichler avatar rweichler commented on August 31, 2024

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:

island.m_dt = m_dt;

Would this work as expected? Or would there be side effects?

from qu3e.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.