|
Post by flsoft on Sept 14, 2023 9:49:28 GMT
I've tested your Invector 3rd person controller with different scene assets and found no problem to run with the unity version 2020.3.20f but when I tested with the version 2022.3.9f, I found the character doesn't move at all, as the attached vide shows. Could you tell me which parameters or scripts I should check? Thank you in advance for your help and have a nice day.
|
|
|
Post by flsoft on Jan 1, 2024 11:23:12 GMT
You are right. Both 2020.3.20f and 2022.3.9f have the same problem and I've discovered awake() routine in vThirdPersonMotor.cs never called (I don't know why) so defaultSpeedMultiplier remains zero. After I rewrote "ResetControllerSpeedMultiplier" as followings, the character now moves fine.
public virtual void ResetControllerSpeedMultiplier() { Debug.Log("*********ResetControllerSpeedMultiplier called in vThirdPersonMotor with, defaultSpeedMultiplier=" + defaultSpeedMultiplier); //this.speedMultiplier = defaultSpeedMultiplier; this.speedMultiplier = 1; }
|
|