Jump to content

LLibrary Animation Assistance


Recommended Posts


I'm trying to animate my model that has taken the place of the main model for renderplayer. And as usual, where I am learning to mod, trouble follows. In this test, I've created a simple animation using LLibrary ModelAnimator. Specifically, using keyframes. I attempted the walk() method, however, it does the same thing. Nothing happens, and I know I'm at fault. I used the eclipse debugger and it showed that the method animate() in render has no return value. I'm not sure this is the right place for this inquiry. If it isn't then I will be more than willing to change over to another support forum. 


Here's what I have.

    public void render(Entity entity, float f, float f1, float f2, float f3, float f4, float f5) { 
    	EntityTwoPlayer twoplayer = (EntityTwoPlayer) entity;
    	animate(twoplayer, f, f1, f2, f3, f4, f5);
        GlStateManager.translate(this.Head.offsetX, this.Head.offsetY, this.Head.offsetZ);
        GlStateManager.translate(this.Head.rotationPointX * f5, this.Head.rotationPointY * f5, this.Head.rotationPointZ * f5);
        GlStateManager.scale(0.68D, 0.81D, 0.81D);
        GlStateManager.translate(-this.Head.offsetX, -this.Head.offsetY, -this.Head.offsetZ);
        GlStateManager.translate(-this.Head.rotationPointX * f5, -this.Head.rotationPointY * f5, -this.Head.rotationPointZ * f5);
     * This is a helper function from Tabula to set the rotation of model parts
	public void setRotationAngles(TabulaModel model, EntityTwoPlayer entity, float f, float f1, float f2,
			float f3, float f4, float f5) {
			super.setRotationAngles(f, f1, f2, f3, f4, f5, entity);

	 public void animate(IAnimatedEntity entity, float f, float f1, float f2, float f3, float f4, float f5) {
		 EntityTwoPlayer twoplayer = (EntityTwoPlayer) entity;
		 setRotationAngles(f5, f, f1, f2, f3, f4, twoplayer);
		 float frame = twoplayer.ticksExisted + LLibrary.PROXY.getPartialTicks();
		 if (twoplayer.getAnimation() == EntityTwoPlayer.WALK_ANIMATION) {
			 if(twoplayer.isSprinting()) {
				 animator.rotate(Thigh1, 15.5f, 0, 0);
				 animator.rotate(Thigh1, -10f, 0, 0);

Any help is greatly appreciated.

Edited by LittleOne
Link to comment
Share on other sites

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.

Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Create New...

Important Information

By using this site, you agree to our Terms of Use.