|
Drag[en]gine Script Module DragonScript 1.32.1
|
Height terrain. More...
Public Member Functions | |
Constructors | |
| HeightTerrain | new (float sectorSize, int sectorResolution) |
| Create height terrain. | |
Management | |
| int | getImageDimension () |
| Image dimension. | |
| float | getSectorSize () |
| Sector dimension. | |
| float | getBaseHeight () |
| Base height in meters. | |
| void | setBaseHeight (float height) |
| Set base height in meters. | |
| float | getHeightScaling () |
| Height scaling in meters. | |
| void | setHeightScaling (float height) |
| Set height scaling in meters. | |
| CollisionFilter | getCollisionFilter () |
| Collision filter. | |
| void | setCollisionFilter (CollisionFilter collisionFilter) |
| Set collision filter. | |
Sectors | |
| int | getSectorCount () |
| Count of sectors. | |
| bool | hasSector (Point coordinates) |
| Sector with coordinates exists. | |
| int | indexOfSector (Point coordinates) |
| Index of sector with coordinates or -1 if absent. | |
| void | addSector (Point coordinates) |
| Add sector. | |
| void | removeSector (int sector) |
| Remove sector. | |
| void | removeAllSectors () |
| Remove all sectors. | |
| Image | getHeightImage (int sector) |
| Height image or null if not set. | |
| void | setHeightImage (int sector, Image image) |
| Set height image or null if not set. | |
| void | setVisibilityFromImage (int sector, Image image) |
| Set visibility from image or null to clear. | |
Textures | |
| int | getTextureCount (int sector) |
| Number of textures. | |
| void | addTexture (int sector) |
| Add texture. | |
| Skin | textureGetSkin (int sector, int texture) |
| Skin of texture. | |
| void | textureSetSkin (int sector, int texture, Skin skin) |
| Set skin of texture. | |
| Vector2 | textureGetUVOffset (int sector, int texture) |
| Texture uv offset. | |
| void | textureSetUVOffset (int sector, int texture, Vector2 offset) |
| Set texture uv offset. | |
| Vector2 | textureGetUVScaling (int sector, int texture) |
| texture uv scaling. | |
| void | textureSetUVScaling (int sector, int texture, Vector2 scaling) |
| Set texture uv scaling. | |
| float | textureGetUVRotation (int sector, int texture) |
| texture uv rotation. | |
| void | textureSetUVRotation (int sector, int texture, float rotation) |
| Set texture uv rotation. | |
| Image | textureGetMask (int sector, int texture) |
| texture mask or null if not set. | |
| void | textureSetMask (int sector, int texture, Image mask) |
| Set texture mask or null if not set. | |
Decals | |
| int | getDecalCount (int sector) |
| Number of decals. | |
| void | addDecal (int sector, Decal decal) |
| Add decal. | |
| void | removeDecal (int sector, Decal decal) |
| Remove decal. | |
| void | removeAllDecals (int sector) |
| Remove all decals. | |
Navigation spaces | |
| int | getNavSpaceCount (int sector) |
| Number of navigation spaces. | |
| void | addNavSpace (int sector) |
| Add navigation returning index. | |
| void | removeNavSpaceAt (int sector, int navspace) |
| Remove navigation space at index. | |
| void | removeAllNavSpaces (int sector) |
| Remove all navigation spaces. | |
| NavigationSpaceType | navspaceGetType (int sector, int navspace) |
| Type of navigation space at index. | |
| void | navspaceSetType (int sector, int navspace, NavigationSpaceType type) |
| Set type of navigation space at index. | |
| int | navspaceGetLayer (int sector, int navspace) |
| Layer of navigation space at index. | |
| void | navspaceSetLayer (int sector, int navspace, int layer) |
| Set layer of navigation space at index. | |
| float | navspaceGetSnapDistance (int sector, int navspace) |
| Snap distance of navigation space at index. | |
| void | navspaceSetSnapDistance (int sector, int navspace, float distance) |
| Set snap distance of navigation space at index. | |
| float | navspaceGetSnapAngle (int sector, int navspace) |
| Snap angle of navigation space at index. | |
| void | navspaceSetSnapAngle (int sector, int navspace, float angle) |
| Set snap angle of navigation space at index. | |
| int | navspaceGetCornerCount (int sector, int navspace) |
| Number of corners of navigation space at index. | |
| void | navspaceSetCornerCount (int sector, int navspace, int count) |
| Set number of corners of navigation space at index. | |
| int | navspaceGetCornerAt (int sector, int navspace, int corner) |
| Corner of navigation space at index. | |
| void | navspaceSetCornerAt (int sector, int navspace, int corner, int navpoint) |
| Set corner of navigation space at index. | |
| int | navspaceGetEdgeCount (int sector, int navspace) |
| Number of edges of navigation space at index. | |
| void | navspaceSetEdgeCount (int sector, int navspace, int count) |
| Set number of edges of navigation space at index. | |
| int | navspaceEdgeGetPoint1 (int sector, int navspace, int edge) |
| First navpoint of edge of navigation space at index. | |
| int | navspaceEdgeGetPoint2 (int sector, int navspace, int edge) |
| Second navpoint of edge of navigation space at index. | |
| int | navspaceEdgeGetType1 (int sector, int navspace, int edge) |
| Type to use for edge to travel from first to second navpoint of edge of navigation space at index. | |
| int | navspaceEdgeGetType2 (int sector, int navspace, int edge) |
| Type to use for edge to travel from second to first navpoint of edge of navigation space at index. | |
| void | navspaceSetEdgeAt (int sector, int navspace, int edge, int point1, int point2, int type1, int type2) |
| Set edge of navigation space at index. | |
| int | navspaceGetFaceCount (int sector, int navspace) |
| Number of faces of navigation space at index. | |
| void | navspaceSetFaceCount (int sector, int navspace, int count) |
| Set number of faces of navigation space at index. | |
| int | navspaceFaceGetCornerCount (int sector, int navspace, int face) |
| Number of corners of face of navigation space at index. | |
| int | navspaceFaceGetType (int sector, int navspace, int face) |
| Type of face of navigation space at index. | |
| void | navspaceSetFaceAt (int sector, int navspace, int face, int cornerCount, int type) |
| Set number of corners and type of face of navigation space at index. | |
| void | navspaceLayoutChanged (int sector, int navspace) |
| Layout of navigation space at index. | |
Height terrain.
This is a native class.
| void Dragengine.Scenery.HeightTerrain.addDecal | ( | int | sector, |
| Decal | decal | ||
| ) |
Add decal.
| void Dragengine.Scenery.HeightTerrain.addNavSpace | ( | int | sector | ) |
Add navigation returning index.
| void Dragengine.Scenery.HeightTerrain.addSector | ( | Point | coordinates | ) |
Add sector.
| EInvalidParam | Sector with coordinates present. |
| void Dragengine.Scenery.HeightTerrain.addTexture | ( | int | sector | ) |
Add texture.
| float Dragengine.Scenery.HeightTerrain.getBaseHeight | ( | ) |
Base height in meters.
| CollisionFilter Dragengine.Scenery.HeightTerrain.getCollisionFilter | ( | ) |
Collision filter.
| int Dragengine.Scenery.HeightTerrain.getDecalCount | ( | int | sector | ) |
Number of decals.
| Image Dragengine.Scenery.HeightTerrain.getHeightImage | ( | int | sector | ) |
Height image or null if not set.
| float Dragengine.Scenery.HeightTerrain.getHeightScaling | ( | ) |
Height scaling in meters.
| int Dragengine.Scenery.HeightTerrain.getImageDimension | ( | ) |
Image dimension.
| int Dragengine.Scenery.HeightTerrain.getNavSpaceCount | ( | int | sector | ) |
Number of navigation spaces.
| int Dragengine.Scenery.HeightTerrain.getSectorCount | ( | ) |
Count of sectors.
| float Dragengine.Scenery.HeightTerrain.getSectorSize | ( | ) |
Sector dimension.
| int Dragengine.Scenery.HeightTerrain.getTextureCount | ( | int | sector | ) |
Number of textures.
| bool Dragengine.Scenery.HeightTerrain.hasSector | ( | Point | coordinates | ) |
Sector with coordinates exists.
| int Dragengine.Scenery.HeightTerrain.indexOfSector | ( | Point | coordinates | ) |
Index of sector with coordinates or -1 if absent.
| int Dragengine.Scenery.HeightTerrain.navspaceEdgeGetPoint1 | ( | int | sector, |
| int | navspace, | ||
| int | edge | ||
| ) |
First navpoint of edge of navigation space at index.
| EOutOfBoundary | navspace is less than 0 or greater than getNavSpaceCount(). |
| EOutOfBoundary | edge is less than 0 or greater than navspaceGetEdgeCount(). |
| int Dragengine.Scenery.HeightTerrain.navspaceEdgeGetPoint2 | ( | int | sector, |
| int | navspace, | ||
| int | edge | ||
| ) |
Second navpoint of edge of navigation space at index.
| EOutOfBoundary | navspace is less than 0 or greater than getNavSpaceCount(). |
| EOutOfBoundary | edge is less than 0 or greater than navspaceGetEdgeCount(). |
| int Dragengine.Scenery.HeightTerrain.navspaceEdgeGetType1 | ( | int | sector, |
| int | navspace, | ||
| int | edge | ||
| ) |
Type to use for edge to travel from first to second navpoint of edge of navigation space at index.
| EOutOfBoundary | navspace is less than 0 or greater than getNavSpaceCount(). |
| EOutOfBoundary | edge is less than 0 or greater than navspaceGetEdgeCount(). |
| int Dragengine.Scenery.HeightTerrain.navspaceEdgeGetType2 | ( | int | sector, |
| int | navspace, | ||
| int | edge | ||
| ) |
Type to use for edge to travel from second to first navpoint of edge of navigation space at index.
| EOutOfBoundary | navspace is less than 0 or greater than getNavSpaceCount(). |
| EOutOfBoundary | edge is less than 0 or greater than navspaceGetEdgeCount(). |
| int Dragengine.Scenery.HeightTerrain.navspaceFaceGetCornerCount | ( | int | sector, |
| int | navspace, | ||
| int | face | ||
| ) |
Number of corners of face of navigation space at index.
| EOutOfBoundary | navspace is less than 0 or greater than getNavSpaceCount(). |
| EOutOfBoundary | face is less than 0 or greater than navspaceGetFaceCount(). |
| int Dragengine.Scenery.HeightTerrain.navspaceFaceGetType | ( | int | sector, |
| int | navspace, | ||
| int | face | ||
| ) |
Type of face of navigation space at index.
| EOutOfBoundary | navspace is less than 0 or greater than getNavSpaceCount(). |
| EOutOfBoundary | face is less than 0 or greater than navspaceGetFaceCount(). |
| int Dragengine.Scenery.HeightTerrain.navspaceGetCornerAt | ( | int | sector, |
| int | navspace, | ||
| int | corner | ||
| ) |
Corner of navigation space at index.
| EOutOfBoundary | navspace is less than 0 or greater than getNavSpaceCount(). |
| EOutOfBoundary | corner is less than 0 or greater than navspaceGetCornerCount(). |
| int Dragengine.Scenery.HeightTerrain.navspaceGetCornerCount | ( | int | sector, |
| int | navspace | ||
| ) |
Number of corners of navigation space at index.
| EOutOfBoundary | navspace is less than 0 or greater than getNavSpaceCount(). |
| int Dragengine.Scenery.HeightTerrain.navspaceGetEdgeCount | ( | int | sector, |
| int | navspace | ||
| ) |
Number of edges of navigation space at index.
| EOutOfBoundary | navspace is less than 0 or greater than getNavSpaceCount(). |
| int Dragengine.Scenery.HeightTerrain.navspaceGetFaceCount | ( | int | sector, |
| int | navspace | ||
| ) |
Number of faces of navigation space at index.
| EOutOfBoundary | navspace is less than 0 or greater than getNavSpaceCount(). |
| int Dragengine.Scenery.HeightTerrain.navspaceGetLayer | ( | int | sector, |
| int | navspace | ||
| ) |
Layer of navigation space at index.
| EOutOfBoundary | navspace is less than 0 or greater than getNavSpaceCount(). |
| float Dragengine.Scenery.HeightTerrain.navspaceGetSnapAngle | ( | int | sector, |
| int | navspace | ||
| ) |
Snap angle of navigation space at index.
| EOutOfBoundary | navspace is less than 0 or greater than getNavSpaceCount(). |
| float Dragengine.Scenery.HeightTerrain.navspaceGetSnapDistance | ( | int | sector, |
| int | navspace | ||
| ) |
Snap distance of navigation space at index.
| EOutOfBoundary | navspace is less than 0 or greater than getNavSpaceCount(). |
| NavigationSpaceType Dragengine.Scenery.HeightTerrain.navspaceGetType | ( | int | sector, |
| int | navspace | ||
| ) |
Type of navigation space at index.
| EOutOfBoundary | navspace is less than 0 or greater than getNavSpaceCount(). |
| void Dragengine.Scenery.HeightTerrain.navspaceLayoutChanged | ( | int | sector, |
| int | navspace | ||
| ) |
Layout of navigation space at index.
| EOutOfBoundary | navspace is less than 0 or greater than getNavSpaceCount(). |
| void Dragengine.Scenery.HeightTerrain.navspaceSetCornerAt | ( | int | sector, |
| int | navspace, | ||
| int | corner, | ||
| int | navpoint | ||
| ) |
Set corner of navigation space at index.
Call navspaceLayoutChanged() once you finished changing the content.
| EOutOfBoundary | navspace is less than 0 or greater than getNavSpaceCount(). |
| EOutOfBoundary | corner is less than 0 or greater than navspaceGetCornerCount(). |
| EInvalidParam | navpoint is less than 0 or greater than (getImageDimension()-1) squared. |
| void Dragengine.Scenery.HeightTerrain.navspaceSetCornerCount | ( | int | sector, |
| int | navspace, | ||
| int | count | ||
| ) |
Set number of corners of navigation space at index.
Call navspaceLayoutChanged() once you finished changing the content.
| EOutOfBoundary | navspace is less than 0 or greater than getNavSpaceCount(). |
| EInvalidParam | count is less than 0. |
| void Dragengine.Scenery.HeightTerrain.navspaceSetEdgeAt | ( | int | sector, |
| int | navspace, | ||
| int | edge, | ||
| int | point1, | ||
| int | point2, | ||
| int | type1, | ||
| int | type2 | ||
| ) |
Set edge of navigation space at index.
Call navspaceLayoutChanged() once you finished changing the content.
| EOutOfBoundary | navspace is less than 0 or greater than getNavSpaceCount(). |
| EOutOfBoundary | edge is less than 0 or greater than navspaceGetEdgeCount(). |
| void Dragengine.Scenery.HeightTerrain.navspaceSetEdgeCount | ( | int | sector, |
| int | navspace, | ||
| int | count | ||
| ) |
Set number of edges of navigation space at index.
Call navspaceLayoutChanged() once you finished changing the content.
| EOutOfBoundary | navspace is less than 0 or greater than getNavSpaceCount(). |
| EInvalidParam | count is less than 0. |
| void Dragengine.Scenery.HeightTerrain.navspaceSetFaceAt | ( | int | sector, |
| int | navspace, | ||
| int | face, | ||
| int | cornerCount, | ||
| int | type | ||
| ) |
Set number of corners and type of face of navigation space at index.
Call navspaceLayoutChanged() once you finished changing the content.
| EOutOfBoundary | navspace is less than 0 or greater than getNavSpaceCount(). |
| EOutOfBoundary | face is less than 0 or greater than navspaceGetFaceCount(). |
| EOutOfBoundary | cornerCount is less than 0. |
| void Dragengine.Scenery.HeightTerrain.navspaceSetFaceCount | ( | int | sector, |
| int | navspace, | ||
| int | count | ||
| ) |
Set number of faces of navigation space at index.
Call navspaceLayoutChanged() once you finished changing the content.
| EOutOfBoundary | navspace is less than 0 or greater than getNavSpaceCount(). |
| EInvalidParam | count is less than 0. |
| void Dragengine.Scenery.HeightTerrain.navspaceSetLayer | ( | int | sector, |
| int | navspace, | ||
| int | layer | ||
| ) |
Set layer of navigation space at index.
| EOutOfBoundary | navspace is less than 0 or greater than getNavSpaceCount(). |
| void Dragengine.Scenery.HeightTerrain.navspaceSetSnapAngle | ( | int | sector, |
| int | navspace, | ||
| float | angle | ||
| ) |
Set snap angle of navigation space at index.
| EOutOfBoundary | navspace is less than 0 or greater than getNavSpaceCount(). |
| void Dragengine.Scenery.HeightTerrain.navspaceSetSnapDistance | ( | int | sector, |
| int | navspace, | ||
| float | distance | ||
| ) |
Set snap distance of navigation space at index.
| EOutOfBoundary | navspace is less than 0 or greater than getNavSpaceCount(). |
| void Dragengine.Scenery.HeightTerrain.navspaceSetType | ( | int | sector, |
| int | navspace, | ||
| NavigationSpaceType | type | ||
| ) |
Set type of navigation space at index.
| EOutOfBoundary | navspace is less than 0 or greater than getNavSpaceCount(). |
| HeightTerrain Dragengine.Scenery.HeightTerrain.new | ( | float | sectorSize, |
| int | sectorResolution | ||
| ) |
Create height terrain.
| sectorSize | Size in meters of sectors along the X and Z axis. |
| sectorResolution | Resolution of sectors (width and height of height images). |
| void Dragengine.Scenery.HeightTerrain.removeAllDecals | ( | int | sector | ) |
Remove all decals.
| void Dragengine.Scenery.HeightTerrain.removeAllNavSpaces | ( | int | sector | ) |
Remove all navigation spaces.
| void Dragengine.Scenery.HeightTerrain.removeAllSectors | ( | ) |
Remove all sectors.
| void Dragengine.Scenery.HeightTerrain.removeDecal | ( | int | sector, |
| Decal | decal | ||
| ) |
Remove decal.
| void Dragengine.Scenery.HeightTerrain.removeNavSpaceAt | ( | int | sector, |
| int | navspace | ||
| ) |
Remove navigation space at index.
| EOutOfBoundary | index is less than 0 or greater than getNavSpaceCount(). |
| void Dragengine.Scenery.HeightTerrain.removeSector | ( | int | sector | ) |
Remove sector.
| void Dragengine.Scenery.HeightTerrain.setBaseHeight | ( | float | height | ) |
Set base height in meters.
| void Dragengine.Scenery.HeightTerrain.setCollisionFilter | ( | CollisionFilter | collisionFilter | ) |
Set collision filter.
| void Dragengine.Scenery.HeightTerrain.setHeightImage | ( | int | sector, |
| Image | image | ||
| ) |
Set height image or null if not set.
| void Dragengine.Scenery.HeightTerrain.setHeightScaling | ( | float | height | ) |
Set height scaling in meters.
| void Dragengine.Scenery.HeightTerrain.setVisibilityFromImage | ( | int | sector, |
| Image | image | ||
| ) |
Set visibility from image or null to clear.
| Image Dragengine.Scenery.HeightTerrain.textureGetMask | ( | int | sector, |
| int | texture | ||
| ) |
texture mask or null if not set.
| EOutOfBoundary | texture is less than 0 or greater than or equal to getTextureCount(). |
| Skin Dragengine.Scenery.HeightTerrain.textureGetSkin | ( | int | sector, |
| int | texture | ||
| ) |
Skin of texture.
| EOutOfBoundary | texture is less than 0 or greater than or equal to getTextureCount(). |
| Vector2 Dragengine.Scenery.HeightTerrain.textureGetUVOffset | ( | int | sector, |
| int | texture | ||
| ) |
Texture uv offset.
| EOutOfBoundary | texture is less than 0 or greater than or equal to getTextureCount(). |
| float Dragengine.Scenery.HeightTerrain.textureGetUVRotation | ( | int | sector, |
| int | texture | ||
| ) |
texture uv rotation.
| EOutOfBoundary | texture is less than 0 or greater than or equal to getTextureCount(). |
| Vector2 Dragengine.Scenery.HeightTerrain.textureGetUVScaling | ( | int | sector, |
| int | texture | ||
| ) |
texture uv scaling.
| EOutOfBoundary | texture is less than 0 or greater than or equal to getTextureCount(). |
| void Dragengine.Scenery.HeightTerrain.textureSetMask | ( | int | sector, |
| int | texture, | ||
| Image | mask | ||
| ) |
Set texture mask or null if not set.
| EOutOfBoundary | texture is less than 0 or greater than or equal to getTextureCount(). |
| void Dragengine.Scenery.HeightTerrain.textureSetSkin | ( | int | sector, |
| int | texture, | ||
| Skin | skin | ||
| ) |
Set skin of texture.
| EOutOfBoundary | texture is less than 0 or greater than or equal to getTextureCount(). |
| void Dragengine.Scenery.HeightTerrain.textureSetUVOffset | ( | int | sector, |
| int | texture, | ||
| Vector2 | offset | ||
| ) |
Set texture uv offset.
| EOutOfBoundary | texture is less than 0 or greater than or equal to getTextureCount(). |
| void Dragengine.Scenery.HeightTerrain.textureSetUVRotation | ( | int | sector, |
| int | texture, | ||
| float | rotation | ||
| ) |
Set texture uv rotation.
| EOutOfBoundary | texture is less than 0 or greater than or equal to getTextureCount(). |
| void Dragengine.Scenery.HeightTerrain.textureSetUVScaling | ( | int | sector, |
| int | texture, | ||
| Vector2 | scaling | ||
| ) |
Set texture uv scaling.
| EOutOfBoundary | texture is less than 0 or greater than or equal to getTextureCount(). |