Game Development Community

Pinning a player to a wall

by Edward Smith · in Game Mechanics Kit · 01/29/2010 (12:30 am) · 1 replies

I was wondering if anyone has an idea as to how this can be done?

Like in painkiller you can stake a zombie to the wall. Static objects/interiors only I suppose.

Thanks!

#1
02/05/2010 (6:33 am)
Hi
You have to work with ragdolls.

Ragdoll as a physics object can be attached to any point in the world by joint. So you have to create a joint and attach certain bone of ragdoll to it. Won't be very straightforward task, but can be done with some modifictaions to ragdoll and projectile code.