SketchyPhysicsWiki
Advertisement
Piston

A Piston Joint

The piston is a type of joint. The object attatched to it can only move along the piston's length, with the aid of a controller.

Variables[]

  1. Min: The shortest distance the object can move
  2. Max: The furthest the object can move
  3. Accel: This states the fastest speed the piston can move.
  4. Damp: The amount of friction applied to the joint. By varying the accel and damp values, you will normally be able to get the balance of speed, power, and acceleration that you want.
  5. Controller: The Ruby script to control movement

Control[]

Like many other joints, the piston can be controlled by both manual input and a formula. It is really just an updated version of the slider.

The UI
Joints SliderPistonHingeServoMotorGyroFixedCorkscrewSpringBallUniversalGears
States StaticFrozenIgnoreNoCollisionShowCollisionNoAutoFreezeMagnetic
Properties MagnetThrusterEmitterOnTouchOnTick
Shapes defaultboxspherecylinderconecapsulechamferconvexhullstaticmesh
Advertisement