Motion Class
This class is used to set motion parameters.
Motion Class Properties
Motion Properties | Type | Values |
type | String | “Linear”, “Angular”, “Combined Linear/Angular”, “Combined Orbital/Rotational”, “Nutating”, “Sliding Vane”, “Free Motion” |
initialPosition | Number | |
minimum | Number | |
maximum | Number | |
Motion Class Methods
Motion Methods | Description | data return |
m = new Motion(type) | creates a new motion object of name m (can be any of the motion types); type = string | no |
property(type) | gets a property of motion type; type = string | yes |
readFrom(m) | copies the motion m to this motion | no |
// Linear motion interface setDirectionNormalTo(e) reverseDirection() setDirection(x, y, z) | Sets device direction for linear motion; e = entity object; x, y, z = number | no |
// Angular motion interface setAxisofRotationNormalTo(e) reverseAxisOfRotation() setCenterOfRotationToCentroid(e) setAxisOfRotation(x,y,z) setCenterOfRotation(x,y,z) | Sets axis and center of rotation for angular motion; e = entity object; x, y, z = numbers | no |
motionComponent(type) | returns the type of component of a combined motion; type = string | yes |
// Nutating motion interface setTiltAxisNormalTo(e) reverseTiltAxis() setTiltAxis(x,y,z) setAxisOfNutationNormalTo(e) reverseAxisOfNutation() setAxisOfNutation(x,y,z) setCenterOfNutationToCentroid(e) setCenterOfNutation(x,y,z) | Sets axis and center of rotation for nutating motion; e = entity object; x, y, z = numbers | no |