Wintermute Engine Forum

Wintermute Engine => Technical forum => Topic started by: tinchopunk on June 07, 2005, 03:28:33 AM

Title: moving 3d objects
Post by: tinchopunk on June 07, 2005, 03:28:33 AM
Ok i want to make something in 3d like mi character (the same bones of the 3d example) pick a chair and move it.
1st)Take the chair with one hand
2nd)move my character with the chair everywhere
3rd)place the chair anywehere
4th)the chair you can´t transpace sorry my english but i think everybody know that an object in wintermute it´s like transparent...
so any help???
thanks
 MArtin
Title: Re: moving 3d objects
Post by: Mnemonic on June 08, 2005, 07:25:55 AM
Picking up an object and attaching it to the 3D actor is shown in WME 3D Demo (the teapot). Simply put, you hide the object in scene and attach it to the actor by calling actor.AddMesh(). To place it back to scene do the reverse process. Remove it from the actor (actor.RemoveMesh) and show the object in scene and set it's position by setting the X and Y attributes.
Title: Re: moving 3d objects
Post by: tinchopunk on June 09, 2005, 04:32:29 AM
thanks Mnemonic
Title: Re: moving 3d objects
Post by: Jeroen on June 20, 2005, 10:09:15 AM
Aaaah I didn't know such a command already existed! I was thinking AddMesh did something different.