Search Home Members Contacts
About Us
Products
Downloads
Community
Support
Pages: [1]
  Print  
Author Topic: rotate a mesh arround another  (Read 348 times)
spooky_paul
Community Member
*
Posts: 15


« on: August 20, 2008, 10:50:37 AM »

hello m8s,

how can i rotate the position of a mesh around another one (or a point in space for that mater), like a satellite orbits its planet?

thanks
« Last Edit: August 20, 2008, 10:55:33 AM by spooky_paul » Logged
Fox1980
Customers
Community Member
*****
Posts: 241


« Reply #1 on: August 20, 2008, 11:08:30 AM »

try using this function

TVMathLibrary.MoveAroundPoint( Origin As D3DVECTOR, Radius As Single, H_Ang As Single, V_Ang As Single)

and use the center of the mesh as origin
Logged

"Programmers don't die. They just GO SUB without RETURN."
spooky_paul
Community Member
*
Posts: 15


« Reply #2 on: August 20, 2008, 11:12:34 AM »

Thank you
Logged
Fox1980
Customers
Community Member
*****
Posts: 241


« Reply #3 on: August 20, 2008, 11:15:56 AM »

Cheers. By the way i forgot to mention, if you're getting odd results using that function remember to check if you're passing radians or degrees to the angle according to what you chose in TVEngine.SetAngleSystem
Logged

"Programmers don't die. They just GO SUB without RETURN."
Pages: [1]
  Print  
 
Jump to:  

Powered by SMF 1.1.3 | SMF © 2006-2007, Simple Machines LLC
Seo4Smf v0.2 © Webmaster's Talks