x


Wheel collider groundhit

calling groundhit function of wheelcollider in FixedUpdate and displaying the result in late update seems to indicate that the return point value is one frame late. Am I right? Does someone have more indication on that?

more ▼

asked Dec 20 '09 at 03:50 PM

risine gravatar image

risine
1 1 1 4

(comments are locked)
10|3000 characters needed characters left

2 answers: sort voted first

when you have physics in your game then you can have multiple FixedUpdates in low framerates or no FixedUpdate in a frame in high framerates. so it can be out of sync. it might be one frame bakc or more. you can call drawing or printing functions in FixedUpdate for debugging and see more accurate results. rendering still happens once per frame but your FixedUpdate might run after lateUpdate and update the results that they should be rendered.

more ▼

answered Feb 06 '10 at 03:06 AM

Ashkan_gc gravatar image

Ashkan_gc
9.3k 33 56 120

(comments are locked)
10|3000 characters needed characters left

Fixed Update is called at an fixed interval. LateUpdate is called just every time after Update (Frame rate depended). If you are handling the Car physics movement in FixedUpdate as it should be than the results from Wheel collider groundhit in lateUpdate will be processed out of sync.

It mean it will never be precise one frame behind but various Fixed Update loops. :-)

Here is the link.

Peter.

more ▼

answered Jan 09 '10 at 12:53 AM

TriplePAF gravatar image

TriplePAF
98 6 7 16

(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x1947
x1765

asked: Dec 20 '09 at 03:50 PM

Seen: 1416 times

Last Updated: Dec 20 '09 at 03:50 PM