| 44 | } |
| 45 | |
| 46 | void interactive_motion::play(CPhysicsShell* s) |
| 47 | { |
| 48 | VERIFY(s); |
| 49 | smart_cast<IKinematicsAnimated*>(s->PKinematics())->PlayCycle(motion, TRUE, anim_callback, this); |
| 50 | state_start(s); |
| 51 | } |
| 52 | |
| 53 | float depth = 0; |
| 54 | void get_depth(bool& do_colide, bool bo1, dContact& c, SGameMtl* /*material_1*/, SGameMtl* /*material_2*/) { save_max(depth, c.geom.depth); } |