Models reacting to bullet hits (Ragdolls)

A place for users of OGRE to discuss ideas and experiences of utilitising OGRE in their games / demos / applications.
Bobo7581
Gnoblar
Posts: 22
Joined: Wed Mar 09, 2005 8:15 pm
Location: Bristol, UK

Models reacting to bullet hits (Ragdolls)

Post by Bobo7581 »

I making a game shooting animated models and have been looking at the zombie ragdoll demo in OgreOde. The zombie looks pretty cool when he dies although sometimes when you shoot him from the front and back and he hits the floor he bounces or spazzs around a bit. Neway, i think this looks cools cool for when you can to kill a model, however i was thinking of harder bosses taking a coupla shoots before they die...

Obs i could just keep track of the shots and on the fifth one or so, i turn into a ragdoll and it dies but i'd like the model if possible to react to hits, i.e. if shot on the shoulder, turn a little and then come back to normal. Could this be done with a ragdoll with no gravity or would it just completely fuck up, otherwise i seem me having to adjust the bones or manual animation ??

I read a few posts on spring based character animation, i don't know if this is anything like that i sense it could be quite hard to do!!
User avatar
Raven
Goblin
Posts: 203
Joined: Wed Mar 23, 2005 1:07 pm
Location: Melbourne, Australia

Post by Raven »

I would think that you will need to get a model that has a 'hit' animation built in. So when ever there is a hit you take off health and give the required animation.
Bobo7581
Gnoblar
Posts: 22
Joined: Wed Mar 09, 2005 8:15 pm
Location: Bristol, UK

Post by Bobo7581 »

Yeah i was thinking about that but, as with the ragdoll, i wanted it to react to where it was hit, i.e. hit in the shoulder twist that shoulder a little then back etc... obs i would need alot of animations to cover every instance
User avatar
BRAINLESS
Goblin
Posts: 282
Joined: Tue Jan 04, 2005 6:56 pm
Location: The Netherlands

Post by BRAINLESS »

I've also been thinking about using this. If you can make a ragdoll take over for a very short time, then give control back to the skeleton+animation, it should do exactly what you want. I see no reason why it wouldn't work.
Proud member of the OpenFRAG Game Development community
User avatar
Robomaniac
Hobgoblin
Posts: 508
Joined: Tue Feb 03, 2004 6:39 am

Post by Robomaniac »

phear hingo

My Webpage
dermont
Bugbear
Posts: 812
Joined: Thu Dec 09, 2004 2:51 am
x 42

Post by dermont »

You can already simulate this to some extent. After shooting (X) press (C) button to release the physics control and restore animation. Depending on where you hit the zombie and how quickly you press (C) give different results.