java.lang.ClassCastException: com.bulletphysics.collision.shapes.CapsuleShape cannot be cast to com.bulletphysics.collision.shapes.CompoundShape

jmonkeyengine.org | 7 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    [Solved] Random exceptions while running multiple physics spaces in parallel - physics - jMonkeyEngine Hub

    jmonkeyengine.org | 7 months ago
    java.lang.ClassCastException: com.bulletphysics.collision.shapes.CapsuleShape cannot be cast to com.bulletphysics.collision.shapes.CompoundShape

    Root Cause Analysis

    1. java.lang.ClassCastException

      com.bulletphysics.collision.shapes.CapsuleShape cannot be cast to com.bulletphysics.collision.shapes.CompoundShape

      at com.bulletphysics.collision.dispatch.CompoundCollisionAlgorithm.processCollision()
    2. com.bulletphysics.collision
      CollisionWorld.performDiscreteCollisionDetection
      1. com.bulletphysics.collision.dispatch.CompoundCollisionAlgorithm.processCollision(CompoundCollisionAlgorithm.java:87)
      2. com.bulletphysics.collision.dispatch.DefaultNearCallback.handleCollision(DefaultNearCallback.java:55)
      3. com.bulletphysics.collision.dispatch.CollisionDispatcher$CollisionPairCallback.processOverlap(CollisionDispatcher.java:236)
      4. com.bulletphysics.collision.broadphase.HashedOverlappingPairCache.processAllOverlappingPairs(HashedOverlappingPairCache.java:190)
      5. com.bulletphysics.collision.dispatch.CollisionDispatcher.dispatchAllCollisionPairs(CollisionDispatcher.java:247)
      6. com.bulletphysics.collision.dispatch.CollisionWorld.performDiscreteCollisionDetection(CollisionWorld.java:150)
      6 frames
    3. com.bulletphysics.dynamics
      DiscreteDynamicsWorld.stepSimulation
      1. com.bulletphysics.dynamics.DiscreteDynamicsWorld.internalSingleStepSimulation(DiscreteDynamicsWorld.java:378)
      2. com.bulletphysics.dynamics.DiscreteDynamicsWorld.stepSimulation(DiscreteDynamicsWorld.java:339)
      2 frames
    4. com.jme3.bullet
      BulletAppState$2.call
      1. com.jme3.bullet.PhysicsSpace.update(PhysicsSpace.java:349)
      2. com.jme3.bullet.PhysicsSpace.update(PhysicsSpace.java:336)
      3. com.jme3.bullet.BulletAppState$2.call(BulletAppState.java:132)
      4. com.jme3.bullet.BulletAppState$2.call(BulletAppState.java:130)
      4 frames
    5. Java RT
      Thread.run
      1. java.util.concurrent.FutureTask.run(FutureTask.java:266)
      2. java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
      3. java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
      4. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      5. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      6. java.lang.Thread.run(Thread.java:745)
      6 frames