- Home /
Question by
Tuck · Feb 09, 2011 at 06:48 PM ·
charactercontrollerspeedcharactermotormotor
Altering Character Motor max speeds from script
Hi,
I have a series of effects I want to apply to the player that effects their movement speed.
Ideally I want to change the maxFowardSpeed, maxSidewaysSpeed, and maxBackwardsSpeed fields from another script. I have tried using GetComponent<CharacterMotor>()
to no avail, and I don't understand how to utilize the MaxSpeedInDirection function.
Is there a way to achieve these speed changing effects?
Thanks, Tuck
Comment