Thanks for your reply. I implemented the mousetracker and it is working better. When the user clicks the mouse i put the model on x,y=0,z so that the model is placed on the ground. I tried to catch a mouse_move event and set the position of the model to the ground so that the user can't move the object in the air or through the ground.
Code:
def onMouseMove(self,e):
if(self.isDrawing):
x,y,z = self.model.getPosition()
self.model.setPosition([x,0,z])
But this wont have any effect. Is it possible to adjust the mousetracker so that the models stick to the ground plane?
EDIT: I try to get some collision with the mousetracker model but I dont know how, can someone give me some hints? Thanks