MachineModeling/Actuators/Linear/Cylinder.openplx
Cylinder
Cylinder is Actuators.Linear.Base: .doc: """ An actuator that consist of two rigid parts, connected with a cylindrical joint. The rigid parts move in AlongCylinder direction """ barrel is Actuators.Linear.CylinderPart: body.length: min_length body.internal_connector.position: {0,0, barrel.body.length} rod is Actuators.Linear.CylinderPart: body.length: stroke_length body.internal_connector.main_axis: -Math.Vec3.Z_AXIS() cylindrical is Physics3D.Interactions.Cylindrical: connectors: [barrel.body.internal_connector, rod.body.internal_connector] initial_angle: 0 range is Physics3D.Interactions.LinearRange: connectors: cylindrical.connectors start: 0 end: stroke_length