Skip navigation
st-f
Currently Being Moderated

Physics : making object bounce

Oct 27, 2011 7:29 AM

Tags: #stage3d #proscenium #physics

I'm looking for a way to make object bounce, I've looked at bulletphysics - it seems that Proscenium is using a port of that library - but couldn't find a way to do that in Proscenium. Maybe anyone knows a way to do that?

 
Replies
  • Currently Being Moderated
    Nov 4, 2011 11:53 AM   in reply to st-f

    Set the restitution on both sides. Example:

    (sphere.physicsObject as btCollisionObject).restitution = 0.8;

     

    (ground.physicsObject as btCollisionObject).restitution = 0.8;

    This will make the sphere bounce against the ground.

    

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points