Update accessibility

This commit is contained in:
Pascal Serrarens 2023-03-22 14:22:22 +01:00
parent 1e616284c0
commit c4bd28c4e7

View File

@ -1327,7 +1327,7 @@ namespace Passer.Humanoid {
#region Update
protected void Update() {
protected virtual void Update() {
Controllers.Clear();
UpdatePose();
traditionalInput.UpdateGameController(gameController);
@ -1338,7 +1338,7 @@ namespace Passer.Humanoid {
UpdatePoseEvent();
}
protected void FixedUpdate() {
protected virtual void FixedUpdate() {
DetermineCollision();
CalculateMovement();
CheckBodyPull();
@ -1352,7 +1352,7 @@ namespace Passer.Humanoid {
}
protected void LateUpdate() {
protected virtual void LateUpdate() {
PostAnimationCorrection();
@ -2073,7 +2073,7 @@ namespace Passer.Humanoid {
rightUpperLegCollider.center = new Vector3(0, -rightUpperLeg.length / 2, 0);
}
private void DetermineCollision() {
protected void DetermineCollision() {
if (proximitySpeed) {
//float angle = Vector3.Angle(hitNormal, targetVelocity);
collided = (triggerEntered && bodyCapsule.radius <= 0.25f);