Slick Forums

Discuss the Slick 2D Library
It is currently Fri May 24, 2013 6:00 pm

All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: CollisionEvent additions
PostPosted: Thu Apr 19, 2007 4:54 pm 
Offline

Joined: Sun Nov 26, 2006 6:56 pm
Posts: 37
I'd like to see something in CollisionEvent for determining the amount of energy lost to dampening.

If possible, I'd also like to see either impact strength (which I've come to learn is hard with the stepping system), or "before" and "after"-values for velocities, to be able to calculate some simple impact-value myself without having to keep track of all the before-speeds manually. :)


Top
 Profile  
 
 Post subject:
PostPosted: Thu May 31, 2007 7:45 pm 
Offline
Site Admin
User avatar

Joined: Thu Jan 01, 1970 12:00 am
Posts: 3143
You can now ask a Body for it's "lastVeclocity" and "lastAngularVelocity" which should give you the velocities before the last update - this should be before the last collision.

No updates to collision event.

Kev


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group