Comments (6)
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.
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.
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.
Does the pyramid entity move, or is it fixed in place?
from libbulletjme.
Yes, in my case, entities can moves
from libbulletjme.
For the entity depicted, a compound of 8 box collision shapes, such as you supposed, seems the best choice.
from libbulletjme.
Related Issues (20)
- Latest versions does not exist in maven HOT 7
- test whether a point is inside a `CollisionShape`
- Why there are no natives in Maven? HOT 2
- expose more SolverInfo properties HOT 1
- Mac M1 support HOT 12
- Strange behaviour when combining CollisionListeners with .addToIgnoreList HOT 4
- PhysicsCharacter.onGround() is unreliable HOT 7
- Double-precision support for non-rigid body physics objects HOT 10
- java.lang.NoClassDefFoundError: com/simsilica/mathd/Matrix3d HOT 4
- SIGSEGV crash in `btRaycastVehicle::updateFriction()` HOT 15
- PhysicsRigidBody lots of excess logging HOT 2
- Please revise your math classes to not be final. (Compatibility with other Math APIs) HOT 15
- where is CollisionShapeFactory? HOT 3
- Create a method in MeshCollisionShape to get a triangle HOT 8
- how to push object? HOT 9
- [ Question ] - How does this library/engine handle spatial partitioning? HOT 6
- [question] how to set a centre of mass HOT 5
- Using "compile" in build.gradle HOT 2
- Question about min/max size when creating physics space HOT 14
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 libbulletjme.