Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Posted

Hello!
I am fairly new at this, so I apologize in advance if I don't make sense.

I have created an item along with its entity class, which extends EntityThrowable. I currently have it rendering as a Snowball.
I am now at the point where I want to control how it behaves once it's thrown. Ideally, I would like it to bounce and eventually land on the ground.
I only have the 3 constructors and and empty onImpact method in the Entity class right now.
When I test it out now, the item shoots out and keeps going, even going through blocks. I imagine I would have to do some manipulation involving motion X/Y/Z and pos X/Y/Z, but I'm not sure what that would be. I tried looking into the EntityThrowable class to see what was going on in there, but I'm not even sure I know what I'm looking for.

 

Could someone please give me some guidance on how I can achieve this effect?

  • Author

Hm...maybe without the bounce effect, then? Would anyone be able to tell me how to have the entity land on the ground?
Not like placing it on the ground, but throwing it and having it land.

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

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.