UArNode.sphere constructor
UArNode.sphere({
- required String id,
- double radius = 0.05,
- UArMaterial material = const UArMaterial(),
- String? anchorId,
- String? parentId,
- UArVector3 position = UArVector3.zero,
- 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);