Hi everyone, I have been trying to access the gravity variable in the Character Motor of the first person controller in the Unity standard assets package.
ut I’m not sure how. It’s in another class called CharacterMotorMovement within the class of CharacterMotor and I can’t access it with the getcomponent method.
I simply want to be able to turn off gravity for the controller in a script. So How would I access the gravity variable?
Someone has to say, this is just too long to post other than in exceptional circumstances.
– FattieI did not even look at the script since it is just Unity CC script. What is the point of posting something anyone can find on his computer...
– fafaseexcellent point
– Fattie