Please login or register.

Login with username, password and session length
Advanced search  

News:

IRC channel - server: waelisch.de  channel: #wme (read more)

Author Topic: 3D Actor Orientation  (Read 2902 times)

0 Members and 1 Guest are viewing this topic.

ekt

  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 3
    • View Profile
3D Actor Orientation
« on: March 26, 2007, 01:33:16 PM »

Do I have a way to precisely control the orientation of a 3D actor?
Logged

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5683
    • View Profile
    • Dead:Code Site
Re: 3D Actor Orientation
« Reply #1 on: March 26, 2007, 05:26:19 PM »

Code: WME Script
  1. actor.DirectionAngle = 123; // where 123 is an angle in degrees
  2.  
Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum. ::wave

ekt

  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 3
    • View Profile
Re: 3D Actor Orientation
« Reply #2 on: March 26, 2007, 05:42:56 PM »

thanks Mnemonic
what i was searching is a way to specify a rotation over an arbitrary axis, like
Code: [Select]
actor.RotateOnVector(x,y,x,teta)
where x,y and z represent the rotation vector and teta the angle of rotation. does it makes sense?

i saw DirectionAngle but it sounded to me as limited on a fixed axes
Logged

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5683
    • View Profile
    • Dead:Code Site
Re: 3D Actor Orientation
« Reply #3 on: March 26, 2007, 07:12:55 PM »

At the time being you can only change the direction the actors are heading.
Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum. ::wave

ekt

  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 3
    • View Profile
Re: 3D Actor Orientation
« Reply #4 on: March 26, 2007, 07:58:55 PM »

i see. thanks for the quick answer
Logged
 

Page created in 0.038 seconds with 23 queries.