UArNode.plane constructor
UArNode.plane({
- required String id,
- double width = 0.2,
- double height = 0.2,
- UArMaterial material = const UArMaterial(doubleSided: true),
- String? anchorId,
- String? parentId,
- UArVector3 position = UArVector3.zero,
- UArQuaternion rotation = UArQuaternion.identity,
- UArBillboard billboard = UArBillboard.none,
A flat rectangle facing +Z (or lying flat when rotated -90° around X).
Implementation
factory UArNode.plane({
required String id,
double width = 0.2,
double height = 0.2,
UArMaterial material = const UArMaterial(doubleSided: true),
String? anchorId,
String? parentId,
UArVector3 position = UArVector3.zero,
UArQuaternion rotation = UArQuaternion.identity,
UArBillboard billboard = UArBillboard.none,
}) => UArNode(
id: id,
type: UArNodeType.plane,
width: width,
height: height,
material: material,
anchorId: anchorId,
parentId: parentId,
position: position,
rotation: rotation,
billboard: billboard,
castShadow: false,
);