UArNode.box constructor
UArNode.box({
- required String id,
- double width = 0.1,
- double height = 0.1,
- double depth = 0.1,
- UArMaterial material = const UArMaterial(),
- String? anchorId,
- String? parentId,
- UArVector3 position = UArVector3.zero,
- UArQuaternion rotation = UArQuaternion.identity,
- bool castShadow = true,
Implementation
factory UArNode.box({
required String id,
double width = 0.1,
double height = 0.1,
double depth = 0.1,
UArMaterial material = const UArMaterial(),
String? anchorId,
String? parentId,
UArVector3 position = UArVector3.zero,
UArQuaternion rotation = UArQuaternion.identity,
bool castShadow = true,
}) => UArNode(
id: id,
type: UArNodeType.box,
width: width,
height: height,
depth: depth,
material: material,
anchorId: anchorId,
parentId: parentId,
position: position,
rotation: rotation,
castShadow: castShadow,
);