I’m trying to make a golf simulation that accurately accounts for friction, air resistence, spin, etc. My problem, is that I don’t know how to convert standard physical properties (such as coefficients of friction) into the clamped values accepted by Unity. For example, as far as I remember, a 0 coefficient of friction means there is no resistence, and a 1 coefficient would cause the object to stop entirely; however, in unity, a dynamic friction of 0 is supposed to be like that of “ice” and 1 of “rubber”. Is there some way to access the underlying physics? An alternative solution?
That’s the same thing. It’s not too difficult to script your own physics behavior if you need to, even if you don’t have access to the physics engine per se.
I’m pretty confident that I can get it to look and feel pretty believable as a whole; however, a requisite for this project is that it feels natural even for an experienced golfer (as they are taking actual golf swings). I know that I won’t be able to construct a 100% perfect simulation, but it has to be strong enough to appease the pros. That’s why I need a little more control.
In response to “That’s the same thing”, I’m mostly in agreement: setting my friction to 0 will get something like the effect that I want; however, they are not exactly the same thing. A ball will eventually stop rolling on ice, even though it may be after a very long while; however, an ideal coefficient of 0 would mean that the ball would never stop sliding (it wouldn’t even roll unless it were given some rotation prior to going on the frictionless surface). Forgive me for being nit-picky. It would be really helpful to be able to adjust actual physics values. That said, is there any hope for me? I know this isn’t Unity’s strongest area.
“Ice” and “rubber” are just descriptive names that people can presumably relate to better. 0 is in fact frictionless. Technically ice isn’t frictionless as you know, but “icy” is a more common term that more people would immediately understand.
so can we not access the AGEIA SDK in any way? for instance the physx SDK supports soft bodies, can we not add suppor for this to unity? There are a few things in the physx SDK that I’d like in unity, it would be great if I could add those myself…