Skip to content

Commit

Permalink
fix: move rigidbody assignment to Start() in EgoVehiclePositionManage…
Browse files Browse the repository at this point in the history
…r.cs

Signed-off-by: Alptuğ Cırıt <[email protected]>
  • Loading branch information
mozhoku committed Mar 14, 2024
1 parent ec02416 commit fa98946
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions Assets/AWSIM/Scripts/UI/EgoVehiclePositionManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,9 @@ public class EgoVehiclePositionManager : MonoBehaviour
private Vector3 initialEgoPosition;
private Quaternion initialEgoRotation;

private void Awake()
{
egoRigidbody = EgoTransform.GetComponent<Rigidbody>();
}

private void Start()
{
egoRigidbody = EgoTransform.GetComponent<Rigidbody>();
initialEgoPosition = EgoTransform.position;
initialEgoRotation = EgoTransform.rotation;
}
Expand Down

0 comments on commit fa98946

Please sign in to comment.