Please login or register.

Login with username, password and session length
Advanced search  

News:

Latest WME version: WME 1.9.1 (January 1st, 2010) - download

Author Topic: moving 3d objects  (Read 2521 times)

0 Members and 1 Guest are viewing this topic.

tinchopunk

  • Occasional poster
  • **
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 90
    • View Profile
    • martinarregui.tumblr.com
moving 3d objects
« 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
Logged

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5683
    • View Profile
    • Dead:Code Site
Re: moving 3d objects
« Reply #1 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.
Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum. ::wave

tinchopunk

  • Occasional poster
  • **
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 90
    • View Profile
    • martinarregui.tumblr.com
Re: moving 3d objects
« Reply #2 on: June 09, 2005, 04:32:29 AM »

thanks Mnemonic
Logged

Jeroen

  • Occasional poster
  • **
  • Karma: 0
  • Offline Offline
  • Posts: 51
  • I'm a llama!
    • View Profile
Re: moving 3d objects
« Reply #3 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.

Logged
 

Page created in 0.034 seconds with 24 queries.