|
Post by archieandrews on Feb 20, 2019 13:52:36 GMT
Hi I have a script that forces a football to be kicked (physics addforce) in the direction of the player when a collision occurs (oncollisionenter)
As the ball is a collider and not a trigger how can I code to play a kick animation similar to the "generic animation" script except with collision NOT tirgger?
Thanks A
|
|
|
Post by Invector on Feb 25, 2019 12:40:03 GMT
You could create a simple script with an OnCollisionEnter method that accesses the tpInput and call the tpInput.animator.CrossFade to your animation
|
|
|
Post by archieandrews on Feb 25, 2019 18:20:14 GMT
Thanks.
Is there any kind of dcoumentation with basic examples of accessing and using the various paramters of tpinput.cc. etc etc ? It seems thats a lot of options to play/tweak with but it's hard to figure out how to exactly.
|
|