GithubHelp home page GithubHelp logo

Comments (6)

CrazyWords1 avatar CrazyWords1 commented on June 2, 2024 1

For the entity depicted, a compound of 8 box collision shapes, such as you supposed, seems the best choice.

Thanks for your replies, it was a pleasure to chat, I think this issue can be closed

from libbulletjme.

stephengold avatar stephengold commented on June 2, 2024

The Minecraft worlds I've seen were composed of thousands of equal-sized, axis-aligned, cubes arranged in a grid.

You describe a model composed of 10-to-1000 cubes or boxes. However, "cube" is a special case of "box", not a synonym, so immediately there's some confusion and uncertainty.

The shape depicted consists of 8 boxes (not 10-to-1000, not cubes) of varying sizes (not equal-sized) and varying orientations (not axis-aligned). My confusion intensifies.

Because the discrepancies between my understanding of Minecraft, your words, and your picture, I'm not 100% confident I understand you're asking about.

For the pyramid depicted, a compound of 8 box collision shapes, such as you supposed, seems a good choice. The other collision shape to consider (assuming the pyramid does not move) would be MeshCollisionShape. Without testing them both in a realistic setting, I can't predict which shape would perform better.

For worlds composed of thousands of equal-sized, axis-aligned, cubes arranged in a grid, further optimizations are possible.

from libbulletjme.

CrazyWords1 avatar CrazyWords1 commented on June 2, 2024

I made a mistake when I equated cubes with “boxes.”
I realize I may have misled you, let me try to explain what I mean.

The world of minecraft itself is really made up of “cubes”, they are all the same size.

Also, in minecraft there is a possibility to add your own entities (models), they consist of “boxes”, these boxes with different turns, and sizes.
The model described in pyramid.json, is not a block in the usual sense of Minecraft, it is an additional model (entity) that can be spawned in the game world.

When I talked about 10 - 1000 cubes, I meant the boxes that usually make up a model (like pyramid.json).

from libbulletjme.

stephengold avatar stephengold commented on June 2, 2024

Does the pyramid entity move, or is it fixed in place?

from libbulletjme.

CrazyWords1 avatar CrazyWords1 commented on June 2, 2024

Yes, in my case, entities can moves

from libbulletjme.

stephengold avatar stephengold commented on June 2, 2024

For the entity depicted, a compound of 8 box collision shapes, such as you supposed, seems the best choice.

from libbulletjme.

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.