Script v1.4.4.0
- Handtools
- Events
- Objects
- Placeables
- Triggers
- Utils
- BaleUtil
- ConfigurationUtil
- DebugUtil
- FillUtil
- FruitUtil
- FSUtils
- GameSettings
- MaterialUtil
- ObjectChangeUtil
- ParticleUtil
- SplitUtil
- TipUtil
- TreePlantUtil
- Utils
- Vehicles
- Specializations
Engine v7.0.0.2
- General
- Entity
- Node
- Scenegraph
- Lighting
- Camera
- Shape
- Particle System
- Physics
- Spline
- Animation
- Overlays
- Sound
- Input
- XML
- Network
- Callbacks
- Text Rendering
- Terrain Detail
- Tire Track
- Editor
- Rendering
- String
- Math
- I3D
- Fillplanes
Foundation Reference
TipUtil
DescriptionTipUtilFunctions
- registerDensityMapHeightType
- getMinValidLiterValue
- getCanTipToGround
- getFillTypeAtLine
- getFillLevelAtArea
- getHeightAtWorldPos
- tipToGroundAroundLine
- removeFromGroundByArea
- changeFillTypeAtArea
registerDensityMapHeightType
DescriptionRegister density map height typeDefinition
registerDensityMapHeightType(integer fillType, float maxSurfaceAngle, float collisionScale, float collisionBaseOffset, float minCollisionOffset, float maxCollisionOffset, float fillToGroundScale, boolean allowsSmoothing, string diffuseMapFilename, string normalMapFilename, string distanceFilename)Arguments
integer | fillType | fill type |
float | maxSurfaceAngle | max surface angle in radians |
float | collisionScale | scale of collision |
float | collisionBaseOffset | offset of collision |
float | minCollisionOffset | min collision offset |
float | maxCollisionOffset | max collision offset |
float | fillToGroundScale | fill to ground scale |
boolean | allowsSmoothing | allows smoothing |
string | diffuseMapFilename | diffuse map filename |
string | normalMapFilename | normal map filename |
string | distanceFilename | distance map filename |
getMinValidLiterValue
DescriptionReturns min valid liter value to tip on groundDefinition
getMinValidLiterValue(integer fillType)Arguments
integer | fillType | fill type |
float | minValidLiter | min valid liter |
getCanTipToGround
DescriptionReturns of can tip to groundDefinition
getCanTipToGround(integer fillType)Arguments
integer | fillType | fill type |
boolean | canTip | can tip to ground |
getFillTypeAtLine
DescriptionReturns fill type at lineDefinition
getFillTypeAtLine(float sx, float sy, float sz, float ex, float ey, float ez, float radius)Arguments
float | sx | start x position |
float | sy | start y position |
float | sz | start z position |
float | ex | end x position |
float | ey | end y position |
float | ez | end z position |
float | radius | radius to check |
integer | fillType | fill type found |
getFillLevelAtArea
DescriptionReturns fill level at areaDefinition
getFillLevelAtArea(integer fillType, float x0, float z0, float x1, float z1, float x2, float z2)Arguments
integer | fillType | fill type to check |
float | x0 | start x position |
float | z0 | start z position |
float | x1 | width x position |
float | z1 | width z position |
float | x2 | heigth x position |
float | z2 | height z position |
float | fillLevel | fill level found |
getHeightAtWorldPos
DescriptionReturns density height at world posDefinition
getHeightAtWorldPos(float x, float y, float z)Arguments
float | x | world x position |
float | y | world y position |
float | z | world z position |
float | densityHeight | density height |
tipToGroundAroundLine
DescriptionReturns fill type at lineDefinition
tipToGroundAroundLine(table vehicle, float delta, integer filltype, float sx, float sy, float sz, float ex, float ey, float ez, float innerRadius, float radius, float lineOffset, boolean limitToLineHeight, table occlusionAreas, boolean useOcclusionAreas)Arguments
table | vehicle | vehicle that is tipping |
float | delta | delta to tip |
integer | filltype | fill type to tip |
float | sx | start x position |
float | sy | start y position |
float | sz | start z position |
float | ex | end x position |
float | ey | end y position |
float | ez | end z position |
float | innerRadius | inner radius |
float | radius | radius |
float | lineOffset | line offset |
boolean | limitToLineHeight | limit to line height |
table | occlusionAreas | occlusion areas |
boolean | useOcclusionAreas | use occlusion areas |
float | dropped | real fill level dropped |
float | lineOffset | line offset |
removeFromGroundByArea
DescriptionRemoves density from fill type in given areaDefinition
removeFromGroundByArea(float x0, float z0, float x1, float z1, float x2, float z2, integer fillType)Arguments
float | x0 | start x position |
float | z0 | start z position |
float | x1 | width x position |
float | z1 | width z position |
float | x2 | heigth x position |
float | z2 | height z position |
integer | fillType | fill type to remove |
float | fillLevel | fill level removed |
changeFillTypeAtArea
DescriptionChange fill type at areaDefinition
changeFillTypeAtArea(float x0, float z0, float x1, float z1, float x2, float z2, integer fillType, integer newFillType)Arguments
float | x0 | start x position |
float | z0 | start z position |
float | x1 | width x position |
float | z1 | width z position |
float | x2 | heigth x position |
float | z2 | height z position |
integer | fillType | old fill type |
integer | newFillType | new fill type |
float | fillLevel | fill level changed |