[custom physics] testing bone envelopes for collision against other polygons

so I’m going to start off light here and do this thread in steps…

first step:
how would I write a game script that gets the bone envelopes for the rig of the character??

second step:
how would I test if those envelopes collide with another polygon??
(I’m thinking shader usage here)

third step:
how could I combine the polygon and bone collisions to affect both ends??
eg: say, a character jumping on a trampoline:
end 1: the character would need to know when the bones collide to stop/reverse momentum.
end 2: the trampoline would need to know when it’s faces collide to morph the mesh at that area.

please help :confused: