Code Monkey home page Code Monkey logo

Comments (4)

jrouwe avatar jrouwe commented on September 24, 2024

I've added some documentation. Let me know if it is clear now. And yes, the factory and type registration is boilerplate that every application needs to do once.

from joltphysics.

MrOnlineCoder avatar MrOnlineCoder commented on September 24, 2024

Thanks, yes it's clearer now! If you don't mind, two quick followups:

  1. Is there a case where user code will use Factory instance, or it's just used internally by Jolt?
  2. Is there any article/code comment/explanation on the whole Jolt runtime types stuff, like RTTI, which I am not deeply familiar with?

from joltphysics.

jrouwe avatar jrouwe commented on September 24, 2024

Is there a case where user code will use Factory instance, or it's just used internally by Jolt?

Only if you create your own custom shapes and want to serialize them using Jolt's serialization system.

Is there any article/code comment/explanation on the whole Jolt runtime types stuff, like RTTI, which I am not deeply familiar with?

No there isn't, but it is a very common programming pattern and you can find lots of resources online about it. There's not much more to it than that you can at run time get type information for an instance of a virtual class (e.g. the name of the concrete type if you only have a pointer to its base class) and when you have a class name (string) you can construct an instance of the class.

from joltphysics.

MrOnlineCoder avatar MrOnlineCoder commented on September 24, 2024

Thanks for all explanations.

from joltphysics.

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.