Search Home Members Contacts
About Us
Products
Downloads
Community
Support
Pages: [1]
  Print  
Author Topic: Mesh.getposition  (Read 1018 times)
mathijs
Community Member
*
Posts: 369


« on: December 07, 2002, 07:45:44 AM »

It seems like i cant figure mesh.getposition. How does it returns the data.

dim pos as TV_VECTOR3

pos = mesh.getposition


that doesnt seems to work

dim x as long

x = mesh.getposition.x

also doesnt seem to work?

How do i get the position?

Mathijs
Logged
Arli
Administrator
Community Member
*****
Posts: 993


« Reply #1 on: December 07, 2002, 07:59:20 AM »

Take a look at this:

Function GetPosition() As D3DVECTOR

Its returning a D3DVECTOR.
So you should do.

Code:

Dim vPos as D3DVECTOR
vPos = Mesh.GetPos


it gets all 3 cordinates(X,Y,Z) from the Mesh Position.
And its stored in:
vPos.X
vPos.Y
vPos.Z
Logged

Happy Coding

Arli
Truevision3D Developer
Arli@Truevision3D.com
Pages: [1]
  Print  
 
Jump to:  

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