Joined: Jan 15, 2013
Post Count: 17
Status:
Offline
Setting Angle
Hi, when i add object to my plan, the angle is not correct, so i try rotate it manually and see what angle figure i get. But when i try input that same angle into the code, and then run it, it wont be displayed with the same angle. Could anyone help me with of to set the rotation of an object correctly in java.
furniture = new HomePieceOfFurniture(catalog.getCategory(7).getPieceOfFurniture(18)); home.addPieceOfFurniture(furniture); furniture.setAngle(90); //This wont be 90 when i run the code, it will be different! furniture.setElevation(80); furniture.setX(bathroomLength- furniture.getDepth()/2 + 4); furniture.setY(new Float(bathroomLength - bathroomLength/1.19));