Trail
Function | Description |
---|---|
Trail.new() | Creates a new trail object |
Property | Type | Description |
---|---|---|
.position | Vector3D | Trail position |
.rotation | Vector3D | Trail rotation |
.scale | Vector3D | Trail scale |
.visible | bool | Set/get visibility of the trail |
.debug | bool | Enable/disable debug data |
.shadows | int | Enable shadows (legacy only); see SHADOW_MODE |
.height | float | Set/get trail height |
.wind | Vector3D | Wind velocity |
.segments | int | Number of segments in trail |
.alignment | int | Trail axis alignment; see TRAIL_ALIGNMENT_TYPE |
.segmentLength | float | Fixed segment length; set to 0 to use dynamic length |
Function | Returns | Description |
---|---|---|
:destroy() | Removes the trail in Irrlicht | |
:ignoreLighting() | Excludes trail from lighting calculations permanently | |
:loadMaterial(Material material ) |
Loads the material | |
:updateNormals(bool enable ) |
If enabled, will update normals as well as vertex positions (may have no effect) | |
:setParent(3DObject other ) |
Parents this 3D object to another | |
:getAbsolutePosition() | Vector3D | Returns world position |
:getAbsoluteRotation() | Vector3D | Returns world rotation |
:getAbsoluteScale() | Vector3D | Returns world scale |
:updateAbsolutePosition() | Updates world transform (non-recursive) |