Advertisement
Guest User

Untitled

a guest
Jun 13th, 2015
266
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. protected void addChildTo(ModelRenderer child, ModelRenderer parent){
  2. // Move the child to a position that is relative to the parent
  3. child.rotationPointX -= parent.rotationPointX;
  4. child.rotationPointY -= parent.rotationPointY;
  5. child.rotationPointZ -= parent.rotationPointZ;
  6.  
  7. child.rotateAngleX -= parent.rotateAngleX;
  8. child.rotateAngleY -= parent.rotateAngleY;
  9. child.rotateAngleZ -= parent.rotateAngleZ;
  10. // Actually add it
  11. parent.addChild(child);
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement