GroundPlaneElement
The GroundPlaneElement
represents a ground plane surface in the scene. Typically used as the main navigable floor or terrain base. Supports customization of visual appearance and walkability for navigation.
Creating a new Ground Plane Element:
const ground = new GroundPlaneElement();
scene.add(ground);
// Set base color
ground.color = '#00ff00';
// Set walkability
ground.walkable = true;
color: THREE.Color | string
The base color or material tint of the ground plane. Can be specified as a THREE.Color
instance or a CSS-style color string (e.g., "#00ff00"
).
Example:
ground.color = new THREE.Color(0x00ff00);
walkable: boolean
Indicates whether the ground plane can be walked upon. When true, it allows navigation agents or players to traverse this surface. When false, it acts as a non-navigable obstacle.
Example:
ground.walkable = true;