i have a small problem :
i create with a left-click a new object whichs slides on the ground. with the next clicks i do the same.
the objects have physicnodes.
when they are near each other, they additionally attract each other. they do this the whole time, so the movement does never stop.
is there a way to stop this ?
a bit bigger problem is the sliding itself :
they dont slide a linear line… they slide like a wave like this ~
any clues which methods might set this off ?
[java]
public void makeSP() {
Spatial sp = assetManager.loadModel("Models/sp.obj").scale(0.001f);
sp.setMaterial(stone_mat);
CollisionShape spShape = CollisionShapeFactory.createBoxShape(sp);
PhysicsNode spNode = new PhysicsNode(
sp,
spShape,
29f);
spNode.setFriction(0.11f);
spNode.setLocalTranslation(new Vector3f(0f,0.1f,0f));
this.rootNode.attachChild(spNode);
bulletAppState.getPhysicsSpace().add(spNode);
curlingSteinNode.applyImpulse(new Vector3f(0f,0f,10f), Vector3f.ZERO);
}
[/java]
greetings
Terry
There is no gravity between objects in bullet, this has to be because of something else.
Try setting linear/angular dampening to 1 (to see extreme case) and then decrease it till you get expected behaviour. I was not able to manage ‘sliding’ by using friction, but linear dampening works quite well (even if I had to find a reasonable number by trial and error).