Ms3dTerrain class

Constructors

Ms3dTerrain(Ms3dModel model, {Map<int, List<int>> levelGroups = const {}, List<int> obstacleGroups = const [], double cellSize = 2.0})

Properties

hashCode → int
The hash code for this object.
no setterinherited
model → Ms3dModel
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

heightAt(double x, double z, {int level = 0, bool checkObstacle = true}) → double?
Walkable height (model Y) at (x, z) on level, or null if the point is off the walkable surface (or blocked when checkObstacle).
isObstacle(double x, double z) → bool
True if (x, z) is inside an obstacle triangle.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Methods

groupsNamed(Ms3dModel m, String names) → List<int>
All groups whose name is in names (comma separated).
parseLevels(Ms3dModel m, String levels) → Map<int, List<int>>
Parses levels="0:Monument,1:Roof" the way Space.setTerrain did: each level spans from the previous level's end (or group 0, or an explicit "Start..End") up to and including the named group.