Help me figure the line of motion in the entity animation code

Started by RazerRblx on Sat, 11/27/2021 - 07:32

Topic category: Help with modding (Java Edition)

Last seen on 21:46, 13. Jan 2022
Joined Nov 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Help me figure the line of motion in the entity animation code
Sat, 11/27/2021 - 07:32

Hello! 
Are there people here who understand coding? I want to start learning to code entity animations. But I cannot understand the meaning of these lines. And I would like to ask those who know the answers to my questions. Namely - What does func mean and what role does it play? How can I calculate the OpenGL coordinates for the movement? (I have a Geckolib animation in the code of which all the necessary coordinates for the movements are written, but I cannot figure out how to correctly transfer these coordinates to the OpenGL coordinates) And also how to specify the desired timeline for the movement? (I sanitize a second)
If someone knows a good guide that can help me, please share.
Animation Code Image