Constructor
new JointCollisionEvents(configopt)
Parameters:
Name | Type | Attributes | Description | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
config |
Object |
<optional> |
Optional parameters. Properties
|
Extends
Members
(static, constant) HAND_JOINTS :Array.<JointId>
An array of JointIds describing the tip of every finger on both hands.
type :string
The string name of this class. This is used for THREE.Object3D#getBehaviorByType.
Methods
Type Definitions
JointId
An array in the form of [bodyPart, side, subIndex]
identifying a joint in the tracking skeleton.
E.g. ['Index', 'Left', 0]
identifies the first joint on the index finger of the left hand.
See TrackingSkeleton#getJoint for available
joint names.
Events
jointcollision
Fires a continuous event while any joints are colliding with the object.
Properties:
Name | Type | Description | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
detail |
Object | Event details Properties
|
|||||||||
target |
THREE.Object3D | The object which was intersected. |
jointcollisionenter
Fires a single event when any specified joints initially collide with the object.
Properties:
Name | Type | Description | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
detail |
Object | Event details Properties
|
|||||||||
target |
THREE.Object3D | The object which was intersected. |
jointcollisionleave
Fires a single event when all joints are no longer colliding with the object.
Properties:
Name | Type | Description | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
detail |
Object | Event details Properties
|
|||||||||
target |
THREE.Object3D | The object which was intersected. |