gearbox
Meta Data
| filepath_exists | True |
| path | gearbox |
| filepath | gearbox.js |
| clean_files | () |
-
ClassDeclarationclass
GearBox
extends Noneclass comments:For xy bound wheels-
dict_keys(['kind', 'word', 'static', 'computed', 'is_symbol', 'value', 'type', 'comments', 'pos'])An entry in the touch map: origin: [touchPoint, ...] the touch points is not rotated yet, and should receive the rotation of the origin. Returned is a new touchmap, where each touchPoint is the origin and the touches are next gears - devoid of the origin.
-
dict_keys(['kind', 'word', 'static', 'computed', 'is_symbol', 'value', 'type', 'comments', 'pos'])The parentOriginPoint was rotated by the origin, the bound point should receive its rotation being an inner wheel of the parentOriginPoint
-
dict_keys(['kind', 'word', 'static', 'computed', 'is_symbol', 'value', 'type', 'comments', 'pos'])A pair gear applies a primary wheel and a pinion wheen - bound together at the center. When one of the gears rotates, the other will also rotate at the same speed.
-
dict_keys(['kind', 'word', 'static', 'computed', 'is_symbol', 'value', 'type', 'comments', 'pos'])A Gear defines a point edge meeting another point edge. Calculate and apply the angularVelocity using the origin and receiver radius. Note the originPoint.angularVelocity must exist.
-
dict_keys(['kind', 'word', 'static', 'computed', 'is_symbol', 'value', 'type', 'comments', 'pos'])A Gear defines a point edge meeting another point edge. Calculate and apply the angularVelocity using the origin and receiver radius. Note the originPoint.angularVelocity must exist.
-
dict_keys(['kind', 'word', 'static', 'computed', 'is_symbol', 'value', 'type', 'comments', 'pos'])Ratcheting ensures the boundReceiverPoint can (and is) being spun in the ratchet direction `-1, 0, 1,` left, both, right respectively. If pass, return True: + If ratcheting == undefined, assume 0 + if 0; both directions + if -1 ratchet and angularVelocity < 0; ratchet left + if 1 ratchet and angularVelocity > 0; ratchet right