This question was
closed Jun 01, 2018 at 06:51 AM by
Positive7 for the following reason:
https://answers.unity.com/questions/1513001/how-to-change-center-x-yz-of-capsule-collider-from.html
How to Change Capsule Collider (CENTER x ,y,z) Animation with Curve ? C# "Positive7 why?"
Hi , I Changed Capsule Collider Height of an animations with curve & its fine , but my problem is how to change the position of that collider on (Center x,y,z)? Thank you !
GetComponent<CapsuleCollider>().height = myAnim.GetFloat("Ch"); //OK
GetComponent<CapsuleCollider>().center = myAnim.GetFloat("Ch1"); // Error
@Lockstep , @Nymisu, @crazyknight , @clunk47 , @urooba , @Menyus777 , @NoBrainer-David, @MaxGuernseyIII , @julian_at_pf , @Dibbie , @Positive7
Comment
Because it is duplicated and answered here: https://answers.unity.com/questions/1513001/how-to-change-center-x-yz-of-capsule-collider-from.html?childToView=1513025#answer-1513025