'Unity- should moving object in 'X' Axis be in Update or fixedUpdate.?
i know physics should be in fixedupdate. but what about moving the object in 'X' Axis forever, does it also count as physics movement?
void Update () {
Vector3 temp = transform.position;
temp.x += speed * Time.deltaTime;
transform.position = temp;
}
Solution 1:[1]
Putting it in Update should be fine
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Rebecca |
