Drag[en]gine Script Module DragonScript
1.23
|
Public Member Functions | |
DMatrix | getMatrix () |
Matrix. More... | |
int | getOrder () |
Order. More... | |
Quaternion | getOrientation () |
Orientation. More... | |
DVector | getPosition () |
Position. More... | |
RailCorner | new (int order) |
Create rail corner. More... | |
RailCorner | new (RailCorner corner) |
Create copy of rail corner. More... | |
void | setOrientation (Quaternion orientation) |
Set orientation. More... | |
void | setPosition (DVector position) |
Set position. More... | |
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.
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.
Quaternion Dragengine.Scenery.RailCorner.getOrientation | ( | ) |
Orientation.
DVector Dragengine.Scenery.RailCorner.getPosition | ( | ) |
Position.
RailCorner Dragengine.Scenery.RailCorner.new | ( | int | order | ) |
Create rail corner.
RailCorner Dragengine.Scenery.RailCorner.new | ( | RailCorner | corner | ) |
Create copy of rail corner.
void Dragengine.Scenery.RailCorner.setOrientation | ( | Quaternion | orientation | ) |
Set orientation.
void Dragengine.Scenery.RailCorner.setPosition | ( | DVector | position | ) |
Set position.