Drag[en]gine Script Module DragonScript  1.23
Dragengine.Scenery.RailCorner Class Reference

Corner in a Rail. More...

Inheritance diagram for Dragengine.Scenery.RailCorner:

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...
 

Detailed Description

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.

Member Function Documentation

◆ getMatrix()

DMatrix Dragengine.Scenery.RailCorner.getMatrix ( )

◆ getOrder()

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.

◆ getOrientation()

Quaternion Dragengine.Scenery.RailCorner.getOrientation ( )

Orientation.

◆ getPosition()

DVector Dragengine.Scenery.RailCorner.getPosition ( )

Position.

◆ new() [1/2]

RailCorner Dragengine.Scenery.RailCorner.new ( int  order)

Create rail corner.

◆ new() [2/2]

RailCorner Dragengine.Scenery.RailCorner.new ( RailCorner  corner)

Create copy of rail corner.

◆ setOrientation()

void Dragengine.Scenery.RailCorner.setOrientation ( Quaternion  orientation)

Set orientation.

◆ setPosition()

void Dragengine.Scenery.RailCorner.setPosition ( DVector  position)

Set position.


The documentation for this class was generated from the following file: