Search Home Members Contacts
About Us
Products
Downloads
Community
Support
Pages: [1]
  Print  
Author Topic: [OK]GetVertex no BUG  (Read 233 times)
lovetv3d
Community Member
*
Posts: 100


« on: May 30, 2008, 12:10:05 PM »

Mesh.GetVertex (Get X Y Z)

Mesh.SetRotation Mesh.GetRotation.x, Mesh.GetRotation.y + 0.1, Mesh.GetRotation.z

Mesh.update

Mesh.GetVertex (Get X Y Z)

There is no change
« Last Edit: May 30, 2008, 07:41:08 PM by lovetv3d » Logged

Sorry for poor English
SylvainTV
Administrator
Community Member
*****
Posts: 4479


WWW
« Reply #1 on: May 30, 2008, 03:05:38 PM »

It's not a bug

GetVertex returns vertex position in local space.

SetRotation only changes the matrix of the mesh.

If you want the rotation to have an effect on the vertices, you have to multiply the vector from GetVertex by the mesh matrix (mesh.GetMatrix)

MathLibrary TVVec3TransformCoord resultVector, sourceVector, Mesh.getMAtrix
Logged

Regards

Sylvain Dupont
TrueVision3D Developer
sylvain@truevision3d.com

TV3D IRC at http://chat.truevision3d.com or on server irc.truevision3d.com #Truevision3D. Come talk with us !
Pages: [1]
  Print  
 
Jump to:  

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