|
Drag[en]gine Script Module DragonScript 1.35
|
Public Member Functions | |
| DMatrix | getMatrix () |
| Matrix. | |
| int | getOrder () |
| Order. | |
| Quaternion | getOrientation () |
| Orientation. | |
| DVector | getPosition () |
| Position. | |
| RailCorner | new (int order) |
| Create rail corner. | |
| RailCorner | new (RailCorner corner) |
| Create copy of rail corner. | |
| void | setOrientation (Quaternion orientation) |
| Set orientation. | |
| void | setPosition (DVector position) |
| Set position. | |
Corner in a Rail.
Corners have a position, orientation and an order number. The order number is used to sort the corners along the parent rail path. The rail is non-forking running from the corner with the lowest order to the corner with the highest order. Adding corners inserts them sorted by their order.
While the Rail class is usually not subclasses the RailCorner class is created by rail corner element classes and can be subclassed to add additional properties to corners.
| DMatrix Dragengine.Scenery.RailCorner.getMatrix | ( | ) |
References getMatrix(), getOrientation(), setOrientation(), and setPosition().
Referenced by getMatrix().
| int Dragengine.Scenery.RailCorner.getOrder | ( | ) |
Order.
The order number is used to sort the corners along the parent rail path. The rail is non-forking running from the corner with the lowest order to the corner with the highest order. Adding corners inserts them sorted by their order.
Referenced by getOrientation().
| Quaternion Dragengine.Scenery.RailCorner.getOrientation | ( | ) |
| DVector Dragengine.Scenery.RailCorner.getPosition | ( | ) |
Position.
Referenced by setOrientation().
| RailCorner Dragengine.Scenery.RailCorner.new | ( | int | order | ) |
| RailCorner Dragengine.Scenery.RailCorner.new | ( | RailCorner | corner | ) |
Create copy of rail corner.
| void Dragengine.Scenery.RailCorner.setOrientation | ( | Quaternion | orientation | ) |
| void Dragengine.Scenery.RailCorner.setPosition | ( | DVector | position | ) |
Set position.
Referenced by getMatrix().