jumping on a vehicle / motorbike?

Hello everybody. Unity Newbie Here :slight_smile: (but with some years of experience in Actionscript :wink: ) .

I’m trying to develop a way to control a character while trying to hop over a moving motorbike / vehicle, both from a still position or especially while jumping to another vehicle passing close.

After looking at the Unite Animation Tips And Tricks" video it seems that a good solution could be implemented by using two spheres to check if the character and the vehicle are close to each other, and then blending the “idle” or “riding” animation with a “jumping” state if the player decides to hop. Unfortunately by using such system, it would require some timing solution to aid the character into landing into the right spot; that is, the driver seat / steering wheel or the motorbike handle bars and saddle. Another contributing factor would be the presence of multiple vehicle, even with different seat size.

I was looking for some system to let the character to identify some “anchor points” for arms and feets onto the vehicle, and then blend the classic animation with such procedurally defined points. it would be useful in conjunction with the physics engine, so if the player receives too much “stress” in such points (from jumping or a not too precise vehicle switch) he just lose the grip on / falls from the vehicle.

I’m pretty new to unity and game programming, but I’m not looking necessarily for some code example, even just some clues / pointers could be useful.

Anyone, no idea? :confused:

From what I see from the Locomotion System Demos maybe IK could be the solution, but isn’t it a bit of CPU overkill for an iPhone game?

I’m not 100% sure on how well this would work, but you could try parenting some Empty GameObjects to your vehicle (inside the Vehicle Prefab). You could then at some point use the Lerp() function to move your Armature’s Bones to those Empties. I’m sort of winging this off the top of my head though, so sorry if this isn’t the least bit helpful. =P Good luck!