how to use getInterpolationWorldTransform()

mohamed
Posts: 15
Joined: Sun Jun 23, 2013 3:41 am

how to use getInterpolationWorldTransform()

Post by mohamed »

I want to use getInterpolationWorldTransform(),but there are no examples , not sure what it returns though (it returns what it says but I don't know what is calculated there)

I want to get the extrapolation of the transform "so I use it with my own sub steps in another calculation"
STTrife
Posts: 109
Joined: Tue May 01, 2012 10:42 am

Re: how to use getInterpolationWorldTransform()

Post by STTrife »

I believe it is from an interpolation step.
For example if you use the normal 1/60 internal time stel and you step the world with for example 0.04 seconds it will do 2 full internal timesteps and interpolate the remaining time (for visuals). So that transform is the one that is used in the motion state think, and it might be off a little from what it should be, because the last part is interpolated instead of simulated