Jump to content
  • 0
Sign in to follow this  
thesammy58

I recently made a basketball hoop. How can I make it so I can throw the ball in to the hoop?

Question

5 answers to this question

Recommended Posts

  • 0

If your hoop is considered hollow by the physics systerm, you can make a sphere that is small enough to fit through the hoop, turn the sphere physical. then use the built in functions that enable you to pick up and throw physics enabled objects.

Put the mouse over a physics enabled object, the cursor will change to a hand, click and drag the mouse around , the object will move.

Press the Control key down, put the cursor over the object, it changes to a hand, click and drag the mouse around and you can move the object up and down.

Play with these a bit and you should be able to do a crude job of throwing the sphere.

You can use scripting to make  a shootable ball.  You could modify the pop gun or other similar script that comes in your inventory to fire a basketball instead of a bullet, and modify the visible part of the gun to be a baketball or part of of avatar's outfit.

Share this post


Link to post
Share on other sites
  • 0

Basically, shooting a basketball is no different then shooting a gun. Of course you will need the ball to be the gun and the bullet, and the bullet need physics. Any basic gun script should work, but you might want to make the ball/gun go transparent after you shoot.

Share this post


Link to post
Share on other sites
  • 0

I think he needs an Animator? Or is that the same as scripting? The avatar could play an animation.

The gun idea is great  because it would allow for free play and actually require a degree of skill.

 

 

Share this post


Link to post
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.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  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.

Sign in to follow this  

×
×
  • Create New...