Guest Posted February 24, 2015 Posted February 24, 2015 Hi. So I've been making a model and I was wondering what the f, f1, f2, f3, f4, f5 floats in setRotationAngles meant (what they are used for). I trying to animate the model and have been following a tutorial to do so. They say you need to do calculations to find the angles using these floats, but they don't tell me what they do. Can anyone tell me? Quote
SanAndreaP Posted February 24, 2015 Posted February 24, 2015 I tried to translate them: https://github.com/SanAndreasP/EnderStuffPlus/blob/master/java/de/sanandrew/mods/enderstuffp/client/model/ModelEnderAvis.java#L130 Quote Don't ask for support per PM! They'll get ignored! | If a post helped you, click the "Thank You" button at the top right corner of said post! | mah twitter This thread makes me sad because people just post copy-paste-ready code when it's obvious that the OP has little to no programming experience. This is not how learning works.
Guest Posted February 24, 2015 Posted February 24, 2015 I tried to translate them: https://github.com/SanAndreasP/EnderStuffPlus/blob/master/java/de/sanandrew/mods/enderstuffp/client/model/ModelEnderAvis.java#L130 Thanks. But here's another question: what does rotFloat do? Quote
SanAndreaP Posted February 25, 2015 Posted February 25, 2015 The reason I've called it that is because it's given a variable, whose value is the return value of a method called handleRotationFloat(Entity, partTicks) . (Line 143 in RenderLivingEntity; 1.7.10) The method just returns entity.ticksExisted + partTicks (Line 377 in RenderLivingEntity; 1.7.10) Quote Don't ask for support per PM! They'll get ignored! | If a post helped you, click the "Thank You" button at the top right corner of said post! | mah twitter This thread makes me sad because people just post copy-paste-ready code when it's obvious that the OP has little to no programming experience. This is not how learning works.
Guest Posted February 25, 2015 Posted February 25, 2015 The reason I've called it that is because it's given a variable, whose value is the return value of a method called handleRotationFloat(Entity, partTicks) . (Line 143 in RenderLivingEntity; 1.7.10) The method just returns entity.ticksExisted + partTicks (Line 377 in RenderLivingEntity; 1.7.10) Oh. Thanks for your help! Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.