Dark_au Posted July 17, 2006 Share Posted July 17, 2006 In a physical object call is the 3rd number in the location Y or Rotation?. If its Ythen can you use the <facing> command that is used for bridges?. How does this facing relate, it appears to be 3 sets of 0-1 values is that the ( X, Y, Z ) rotation?. Link to comment Share on other sites More sharing options...
ClaytoniousRex Posted July 17, 2006 Share Posted July 17, 2006 The Location tag is a 3D vector so the 3 components in there are the x, y, and z location of the object. The x and y axes are the ground plane and the z axis is elevation. If you place a building without the optional PlaceOnGround tag then the z component of the coordinate will be ignored and the building will be placed at the elevation of the terrain of the corresponding x,y point automatically. The facing tag is the only one that controls the object's orientation. It is completely independent of the Location tag. Link to comment Share on other sites More sharing options...
Dark_au Posted July 17, 2006 Author Share Posted July 17, 2006 so is that x,y,z rotation with 0 to 360 degrees repressented by 0.0 - 1.0 ?. Link to comment Share on other sites More sharing options...
Dark_au Posted July 17, 2006 Author Share Posted July 17, 2006 Also can there be more than 3 types of tree in the <trees> section? Link to comment Share on other sites More sharing options...
ClaytoniousRex Posted July 18, 2006 Share Posted July 18, 2006 I guess you're asking about the Facing tag, right? That one is not rotation but is also a 3D vector. It is a vector that points in the direction that the front of the object should be facing. The world x,y axes are aligned with east and north respectively. So, for example, if you wanted a building or to be facing northeast then you could use a Facing tag like this: 1,1,0 To make the building face due south you would use: 0,-1,0 Yes, there can be any number of tree types. Link to comment Share on other sites More sharing options...
Recommended Posts