Please login or register.

Login with username, password and session length
Advanced search  

News:

This forum provides RSS feed. To query recent posts use this url. More...


Author Topic: help with actor.TurnToAngle  (Read 3419 times)

0 Members and 1 Guest are viewing this topic.

keybone

  • Regular poster
  • ***
  • Karma: 0
  • Offline Offline
  • Posts: 112
    • View Profile
    • Lucine
help with actor.TurnToAngle
« on: August 31, 2010, 08:07:54 PM »

hi all..sorry my bad english

i need to rotate a model 3d in a scene

i have read the manual and i have find the script turnToAngle but i dont know how use .


my code is

var Robber = Scene.LoadActor3D("actors\Robber\Robber.act3d");
Robber.SkipTo(274, 716);
Robber.Direction = DI_UPLEFT;

Robber.TurnToAngle = 90;   


the problem is in this last line,   I do not know how to say in which direction and how many degrees .. for example rotate the model 90 degrees on the x axis

 I searched the forum but have not found anything about it.

 I hope someone can help me.

by and tk  ::beer
Logged
Lucine Company http://www.lucine.it/
Tales of Lucine: The Realm of Hobdark http://www.lucine.it/TalesOfLucine

Andrej (Blue Arc)

  • Occasional poster
  • **
  • Karma: 1
  • Offline Offline
  • Gender: Male
  • Posts: 73
    • View Profile
Re: help with actor.TurnToAngle
« Reply #1 on: September 01, 2010, 08:44:51 AM »

Hi,

please see this lines:

TurnToAngle(Angle)
TurnToAngleAsync(Angle)


Makes actor turn to the given angle.
Parameters

Angle
    The angle to turn to, in degrees

Remarks
The TurnToAngle method blocks the script execution until the turning is over, while the TurnToAngleAsync method returns immediately.

So if you want to turn your 3d model into any angel you have to write this line of code:
Robber.TurnToAngle(Your_Angle); 
Logged
 

Page created in 0.028 seconds with 19 queries.