Skip to content

@relu-interactives/spatial-ecs


@relu-interactives/spatial-ecs / components / FaceHeadComponent

Class: FaceHeadComponent ​

Defined in: components/FaceAttachment.ts:27

The head in a face-tracking project. There is one, and it stands in for the person: in the editor it's a head you can see and place things on, and at runtime it follows the face the camera finds.

Its children are in head space (see FACE_ATTACH_POINTS): one unit is the width of the face. Objects are usually attached to a place on the head with FaceAttachmentComponent, but any child goes along with the head.

Extends ​

Constructors ​

Constructor ​

ts
new FaceHeadComponent(options?): FaceHeadComponent;

Defined in: components/FaceAttachment.ts:41

Parameters ​

ParameterType
options?FaceHeadOptions

Returns ​

FaceHeadComponent

Overrides ​

Component.constructor

Properties ​

PropertyTypeDescriptionDefined in
occluderbooleanHide what's behind the head, so a hat's back goes behind the wearer.components/FaceAttachment.ts:29
showOccluderbooleanDraw the occluder instead of hiding it, in the editor and at runtime. For debugging.components/FaceAttachment.ts:31
occluderInsetnumberHow far under the skin the occluder sits, in centimetres, so a thing on the skin isn't cut.components/FaceAttachment.ts:33
occluderHairnumberHow far above the skull the occluder reaches, in centimetres. The tracker sees the face and not the hair, so with none the occluder is a bald head. It isn't used while something is attached to headTop, since a hat flattens hair and a raised crown would come through a tight one.components/FaceAttachment.ts:39