-
Undertanding property speed
HI, I’m working on gear system simulation. I have some comps that are gears with diferent teeth number.
Each gear rotation is driven by a driver gear rotation speed. I have a master gear that rotates at constant speed, and in the other gears I have this expression:driver = effect("Driver")("Layer");
nSplit =driver .name.split("_");
driverTeeth = nSplit[nSplit.length -1];
nSplit = name.split("_");
selfTeeth = nSplit[nSplit.length -1];
dSpeed = driver .transform.rotation.speed;
transmision = driverTeeth/selfTeeth;
dir = (driver.effect("Reversed")("Checkbox").value)? -1 : 1;
time * transmision *dSpeed * dir + valueHere is a screenshot of the layers:

Each gear is driven by the below gear layer.
With the 2 and 3 gears, it works fine, but the gear 3 speed is returning extreme changing values like -1087, 56, 523… so the gear 4 makes very fast wiggly rotations. Someone can figure out wy is this happening?