Scripting API

Home Scripting API Index Class Overview

com.nolimitscoaster

Class TrackPos


public class TrackPos
extends Object

Represents a position on a track

Method Summary

nlvm.math3d.Matrix4x4f getCenterRailsMatrix()
  Returns the orientation and translation of the track (Center of rails) at this track position as a transformation matrix.
nlvm.math3d.Vector3f getCenterRailsPos()
  Returns the position of the track (Center of rails) at this track position
Coaster getCoaster()
  Returns the coaster the position is on
TrackPos getTrackPosOnCenterRailsWithOffset(double offset)
  Creates a new track position by moving the current track position on the center of rails spline by offset meters.


Method Detail


getCenterRailsMatrix

public final nlvm.math3d.Matrix4x4f getCenterRailsMatrix()

Returns the orientation and translation of the track (Center of rails) at this track position as a transformation matrix.


getCenterRailsPos

public final nlvm.math3d.Vector3f getCenterRailsPos()

Returns the position of the track (Center of rails) at this track position


getCoaster

public final Coaster getCoaster()

Returns the coaster the position is on


getTrackPosOnCenterRailsWithOffset

public final TrackPos getTrackPosOnCenterRailsWithOffset(double offset)

Creates a new track position by moving the current track position on the center of rails spline by offset meters.