Blockland Forums > Suggestions & Requests
Blockland Explosion Physics
Nobot:
Sounds like a good idea.
/support
Treynolds416:
--- Quote from: Extrude on June 19, 2012, 12:38:10 AM ---Could you check 100s of bricks and distance between all players every time somebody fires a splash damage projectile in a deathmatch...
--- End quote ---
Who said anything about all the players? Obviously the check would find candidates that would actually be harmed by that explosion, and only bricks that would be in the radius
zmaster:
So basically you want brick to be rigid bodies?
That's CPUicide.
But would make creating cars out of bricks entirely possible
Teneksi:
Fire a bunch of short-lived invisible(?) projectiles in a spherical pattern? Maybe each one does a somewhat small amount of damage, but being close to the origin would kill you? Sort of like the frag grenade, but more organized and explosion-like.
phflack:
best way might be to find all the players in the explosion, and then fire raycasts to each corner of their collision box and the middle, if any of them reach, do stuff to them
there might be small problems where you could have each area blocked, with a hole to the top of the head or something, but it's less error than just having one raycast to the middle of the player