UArNode.box constructor

UArNode.box({
  1. required String id,
  2. double width = 0.1,
  3. double height = 0.1,
  4. double depth = 0.1,
  5. UArMaterial material = const UArMaterial(),
  6. String? anchorId,
  7. String? parentId,
  8. UArVector3 position = UArVector3.zero,
  9. UArQuaternion rotation = UArQuaternion.identity,
  10. 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,
);