Jump to content

Recommended Posts

Posted

So I have this problem where one entity would play the animation fine on land (like it's supposed to) and when i add another similar entity whereas it is not on land (not supposed to play animation) will not play animation until the first entity renders on screen. 

In which it will follow the same exact animation as the one on land until the first entity goes off screen.

 

Any help would be greatly appreciated. Feel free to clarify if my explanation isn't understandable

 

Model Code

  Reveal hidden contents

Render Code

  Reveal hidden contents

 

Client Proxy (if needed)

  Reveal hidden contents

 

Posted

You need an else statement in the setRotationAngles method to reset the angles back to default if the entity isn't on the ground as it is using the rotation angles for the one that is on the ground. There is only one Model object which is used globally for all entities so the rotation angles are being shared and only updated on the one which is grounded.

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.

Guest
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.

Announcements



×
×
  • Create New...

Important Information

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