UArNode.sphere constructor

UArNode.sphere({
  1. required String id,
  2. double radius = 0.05,
  3. UArMaterial material = const UArMaterial(),
  4. String? anchorId,
  5. String? parentId,
  6. UArVector3 position = UArVector3.zero,
  7. bool castShadow = true,
})

Implementation

factory UArNode.sphere({
  required String id,
  double radius = 0.05,
  UArMaterial material = const UArMaterial(),
  String? anchorId,
  String? parentId,
  UArVector3 position = UArVector3.zero,
  bool castShadow = true,
}) => UArNode(id: id, type: UArNodeType.sphere, radius: radius, material: material, anchorId: anchorId, parentId: parentId, position: position, castShadow: castShadow);