Giter Club home page Giter Club logo

Comments (9)

stephengold avatar stephengold commented on July 17, 2024

Thanks for reporting this issue. I'll investigate and try to advise you.

from libbulletjme.

waveware4ai avatar waveware4ai commented on July 17, 2024

from libbulletjme.

stephengold avatar stephengold commented on July 17, 2024

According to my tests, Bullet implements soft-versus-rigid collisions only for rigid bodies with 3-D convex shapes. I therefore advise replacing the PlaneCollisionShape with a (large) 3-D convex shape such as a BoxCollisionShape, CylinderCollisionShape, or HullCollisionShape.

from libbulletjme.

waveware4ai avatar waveware4ai commented on July 17, 2024

from libbulletjme.

waveware4ai avatar waveware4ai commented on July 17, 2024

This is movie clip
replaced BoxCollisionShape
https://mega.nz/file/scoURK7a#koQ2TisBUeVHNrSiT1LyWjb8vwHpAaFugW_VUZRde7c

replaced HullCollisionShape
https://mega.nz/file/wcoAWA5T#lEXDMwAOMQVmTa1HwVc4AxsSOH5v-7_VFPdUlDGAY1k

from libbulletjme.

stephengold avatar stephengold commented on July 17, 2024

The hull shape you created has zero thickness, making it 2-D rather than 3-D. The box shape you created has a total thickness of 0.02, making it far too thin for a 30-millisecond timestep with gravity=9.81

Again, I recommend using a 3-D convex shape for the floor.

Also, try reducing the timestep from 0.03 second to a smaller value, such as 0.003 second, or else reducing gravity so that the boxes don't fall so fast.

from libbulletjme.

stephengold avatar stephengold commented on July 17, 2024

@waveware4ai Has your issue been solved?

from libbulletjme.

waveware4ai avatar waveware4ai commented on July 17, 2024

Hello stephengold~
I did solved for your help.
I forgot to setting floor mass to zero.
There is nothing error just now ...
I m very thanks to you.

below is changed code

PhysicsRigidBody floor = new PhysicsRigidBody(new BoxCollisionShape(1000f, 0.01f, 1000f));
floor.setMass(0); <-- my mistake static mass zero !!!

from libbulletjme.

stephengold avatar stephengold commented on July 17, 2024

Good catch! I'm glad it's working for you now.

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.