Archived

This topic is now archived and is closed to further replies.

nickmerritt

Damage using a physics model?

Recommended Posts

How would you implement damage using a physics simualtion. The simulation would using force vectors, acceleration, velocity mass ect... However I want to use the same code for collisions with projectiles(ie: bullets, shells ect..) as bounces.(ie: a ball hitting a wall.) How could I do this. Should each object have a property of the amount of force it can take before it deforms in to an explosion. This would have to be amount of force per m^2 wouldn''t it? As a side note, how could I implement laser beams in a sci-fi space game? Would I just use a whole bunch of little tiny projectiles in a stright line. How does light deform steel anyways? Thanks for listening to my jibberish. Nick Müsli Games www.musli.tk

Share this post


Link to post
Share on other sites
You may already know this, but I think you also want to take into account impulse: F*dt = M*dv , since time has much to do with it.

I think a laser would just be one really long projectile that doesn't move.

[edited by - EvilProgrammer on March 20, 2004 11:46:36 AM]

Share this post


Link to post
Share on other sites