Jump to content

Vertex Y and -Z swapped


Recommended Posts

Not sure if it's a bug or an inconsistency but I've been using model->GetSurface()->SetVertexPosition() and noticed that the Y height of a vertex is actually controlled in the negative Z direction.  In other words, to go up (higher from the terrain or water plane), you need to decrease the Z value, as opposed to the expected increasing Y.

Also, the parameters section here is wrong.
https://www.leadwerks.com/learn?page=API-Reference_Object_Surface_AddVertex
 

Link to comment
Share on other sites

  • 1 year later...

Nope, vertex positions are local. If the object is rotated that won't match the world coordinate system.

My job is to make tools you love, with the features you want, and performance you can't live without.

Link to comment
Share on other sites

Odd, especially considering that I didn't rotate the model in either Max or via code.  How could it consider the model rotated by default?  Is this another default Max setting thing?

Also, what's an equivalent function for global use where the rotation of the model is irrelevant?  I was trying to make a Worms-type game where I raise vertices to make hills.

Link to comment
Share on other sites

  • Josh locked this topic
Guest
This topic is now closed to further replies.
 Share

×
×
  • Create New...