#Set Rigidbody Interpolation in Code

1 messages · Page 1 of 1 (latest)

civic owl
#

So the title basically tells you everything I want to know

civic owl
#

Thanks bro like I havent tried that?

#

I wanna set it per code not in the inspector

#

like ```cs
rigibody.interpolate = true;

#

something like this

#

@teal hamlet

civic owl
#

damn i saw this documentation but i didnt knew how to use it

#

thanks mate thats all i wanted

civic owl
#
GetComponent<Rigidbody>().interpolate = RigidbodyInterpolation.Interpolate;
#

error CS1061: 'Rigidbody' does not contain a definition for 'interpolate' and no accessible extension method 'interpolate' accepting a first argument of type 'Rigidbody' could be found (are you missing a using directive or an assembly reference?)