Problem using GImpactCollisionShape on a character model


Here’s my problem : I am actually coding a little game where I control a character model with kinect where the character have to juggle whith balls.

The only problem left now is how to create the collision between my model and the balls. For that, I want to use a GImpactCollisionShape. I think I know how to create it but how to use it is another matter. So i would like a little help for using it.

Here’s my code for creating my GImpactCollisionShape :


player = (Node) assetManager.loadModel(“Models/Oto/Oto.mesh.xml”);

Geometry p = (Geometry) player.getChild(0);

GImpactCollisionShape h = new GImpactCollisionShape(p.getMesh());


Thank you in advance.

Look at TestRagDollCharacter.

1 Like

Thanks normen, that’s exactly what I needed and so easy to use. This KinematicRagdollControll is just Impressive.