Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- protected void addChildTo(ModelRenderer child, ModelRenderer parent){
- // Move the child to a position that is relative to the parent
- child.rotationPointX -= parent.rotationPointX;
- child.rotationPointY -= parent.rotationPointY;
- child.rotationPointZ -= parent.rotationPointZ;
- child.rotateAngleX -= parent.rotateAngleX;
- child.rotateAngleY -= parent.rotateAngleY;
- child.rotateAngleZ -= parent.rotateAngleZ;
- // Actually add it
- parent.addChild(child);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement