Rotationgenerator
[Desktop Automation]
This object is used for creating rotationvectors.
Properties
Property | Read/write | Type | Description |
---|---|---|---|
numberofrotations | read | Number | Total number of different rotations to generate. If more rotations are requested, the generator starts with the first one again. |
rotationssteps | Read/write | Number | The number of extra rotations around a position. Default value is 8. |
tolerance | Read/ write | Number | The lower the tolerance, the better the sphere is the more positions are generated. The default value is 0.1. |
Methods
Method | Syntax | Description |
---|---|---|
Reset | rotationgenerator:reset(); | Resets the generation process. |
createnextrotation | rotation = rotationgenerator:createnextrotation(); | Creates a LuaVector3f object, with the rotation vector. The normalized rotation vector gives the rotation axis, while the length gives the angle. |