Question by
TurnBased · Aug 06, 2016 at 06:41 PM ·
physics material
Is there a way to determine what friction is being applied to an object in a frame?
I've got a cube that drops alongside another cube, with no gap between them. They both have a physic material with 0 drag (static and dynamic), but for some reason when they pass each other the falling cube looses speed as if affected by friction.
I'd like to check what friction force is being applied to the falling cube. Additionally, are there any other components I should be looking at to determine why this second object is slowing down, even with a drag set to 0?
I've set up Debug.Logs to confirm that the friction is set to zero like this:
pm = GetComponent<Collider>();
Debug.Log("Static friction is " + pm.material.staticFriction);
Debug.Log("Dynamic friction is " + pm.material.dynamicFriction);
... and this returns a proper 0.
Comment