Sign in to follow this  

Help me Crash my Spaceships together realistically

Recommended Posts

Assume the following:

I have two spaceships, consisting in code of hundreds of "modules" that are individually collidable. I use these modules for different purposes -- armor, shields, whatever. These modules have hit point values.

My two spaceships are crashing into each other. These ships have, in code:
1. Mass
2. Velocity
3. etc.

What I want to do is to somewhat realistically transfer momentum between the ships. I want to use the modules on the ships as a sort of crumple space. When the ships collide, the colliding modules take damage, and the ship is slowed appropriately depending on the mass and velocity of the colliding bodies.

I'm pretty rusty with my physics. Can you folks point me in the right direction to figure out impact forces and how I can try to model an impact?

Share this post

Link to post
Share on other sites
What about something from the DMM tech used for Force Unleashed? You'd setup all your modules with constraints that break under specific stresses, then just let them impact as a normal object. Then your ship would tear and crumple as it impacted.

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this