#1
|
|||
|
|||
3D world editor
Hello,
Im creating a 3D world editor with Vizard. I want to add a model, place it and be able to replace the models. The user can navigate through the world with wasd and click a model and replace it. So far so good, but i'm experiencing some problems with the object placement. This is the code for a model to follow the mouse-cursor: Code:
# draw model on mouse position if(self.isDrawing): line = viz.MainWindow.screenToWorld(viz.mouse.getPosition()) x,y,z = line.endFromDistance(6) y = 0 self.model.setPosition([x,y,z]) Thanks! |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
World Transformations | c4am95 | Vizard | 4 | 11-09-2010 12:50 PM |
why is time faster in my virtual world? | billjarrold | Vizard | 1 | 11-24-2009 05:33 PM |
button in the world | guxmy01 | Vizard | 1 | 06-10-2008 04:37 PM |
What are the options for making a movie of a Vizard world? | Karla | Vizard | 1 | 05-13-2008 10:56 AM |
General Questions about Vizard: World Viz | dav | Vizard | 5 | 08-28-2006 03:44 PM |