Question by
Please_help_me007 · Apr 09 at 01:51 PM ·
updatefixedupdate
Moving object in 'x' axis . should it be inside update or fixedupdate.?
i was following youtube teacher but he dont reply comments. hi, i dont understand even moving object in 'x' axis is a physics than why it is inside update method not in fixedupdate?.
void Update () {
Vector3 temp = transform.position;
temp.x += speed * Time.deltaTime;
transform.position = temp;
}
Comment
Your answer
Follow this Question
Related Questions
Optimizations: Should I use Update or FixedUpdate? Could you help me optimize rotations? 1 Answer
Physics after build feel different vs In-Editor (Time.deltaTime) 1 Answer
Make FixedUpdate camera be static like in Update? 0 Answers
Programmatically control Unity Game loop to sync with external hardware/software 1 Answer