- Home /
car physic unity5 error wheels
welcome
my project car physic error with (unity 5.0.0f4) for wheels physic
please help me fix come back wheels
script car simple with unity5
collider.GetLocalPose(out position, out rotation);
to
collider.GetWorldPose(out position, out rotation);
but error script wheels
Answer by joseques · Mar 10, 2015 at 05:02 PM
Looks like the GetLocalPose function is not implemented nor documented yet, so you have to wait until an update. Meanwhile you can get the local position and rotation just by accessing the localPosition and localRotation of the collider transform
Vector3 position = collider.transform.localPosition;
Quaternion rotation = collider.transform.localRotation;
Remember that whorld coordinates is not the same as local coordinates
Answer by Aberdyne · Apr 09, 2015 at 04:37 AM
There have been an update to the documentation which use GetWorldPose instead. I'm testing it right now...
edit: and it works well...
Your answer
Follow this Question
Related Questions
Cannon fires straight upward 0 Answers
3D Drag&Drop with collision 0 Answers
WebGL Mesh Colliders 0 Answers
finding closest n objects 0 Answers
Android audio lag issue, any way to reduce the lag? 1 Answer