Drag[en]gine Script Module DragonScript 1.35
Loading...
Searching...
No Matches
Dragengine.Scenery.RailCorner Class Reference

Corner in a Rail. More...

Inheritance diagram for Dragengine.Scenery.RailCorner:

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.

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.

Referenced by getOrientation().

◆ getOrientation()

Quaternion Dragengine.Scenery.RailCorner.getOrientation ( )

Orientation.

References getOrder().

Referenced by getMatrix().

◆ getPosition()

DVector Dragengine.Scenery.RailCorner.getPosition ( )

Position.

Referenced by setOrientation().

◆ new() [1/2]

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

Create rail corner.

References new().

Referenced by new().

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

References getPosition().

Referenced by getMatrix().

◆ setPosition()

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

Set position.

Referenced by getMatrix().


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