Jump to content

Projectile Gravity


Crescentine

Recommended Posts

could anyone help me out with trying to fix this problem? I'm noticing it while trying to update my mod to 1.19.3. Not really sure what's going on here... entity is a child of this class https://gist.github.com/Crescentine/028745bebb8685eee4a13294cb638dfd

Basically, gravity is completely scuffed and its not going down smoothly like it was in 1.19.2. Is there some sort of change or whatever I need to implement? Is it related to Geckolib4? 

This is my whole project repo - https://github.com/Crescentine/Trajans-Core

Video showing the problem 

Thanks in advance to any insight anyone can provide. 

Link to comment
Share on other sites

The entity moves once per tick (1/20th of a second) or at 20 TPS (ticks per second).

There are usually more frames drawn (FPS) than the game ticks (or should be).

To smooth this out Minecraft has a notion of "partial tick". 

If you look at the vanilla renderers there are plenty of places where it "Lerps" (linear interpolates) between an original and end value based on this partial tick.

Boilerplate:

If you don't post your logs/debug.log we can't help you. For curseforge you need to enable the forge debug.log in its minecraft settings. You should also post your crash report if you have one.

If there is no error in the log file and you don't have a crash report then post the launcher_log.txt from the minecraft folder. Again for curseforge this will be in your curseforge/minecraft/Install

Large files should be posted to a file sharing site like https://gist.github.com  You should also read the support forum sticky post.

Link to comment
Share on other sites

Just now, Crescentine said:

But the hitbox is physically moving downwards roughly - how is that the rendrer if the entity itself is moving? 

issues aside(I apologize) this mod looks really cool, if you could add a fire combustion effect spark from the tip of the barrel would be extremely cool. I would totally download this mod and set it on a ship or a castle of mines 

Link to comment
Share on other sites

9 hours ago, sFXprt said:

issues aside(I apologize) this mod looks really cool, if you could add a fire combustion effect spark from the tip of the barrel would be extremely cool. I would totally download this mod and set it on a ship or a castle of mines 

lmao glad you like it. 

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.

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.



×
×
  • Create New...

Important Information

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