2021-04-16 17:10:15 +02:00
|
|
|
|
[Planck.js API Doc](../README.md) › [Globals](../globals.md) › [ContactFeature](contactfeature.md)
|
|
|
|
|
|
|
|
|
|
|
|
# Class: ContactFeature
|
|
|
|
|
|
|
|
|
|
|
|
The features that intersect to form the contact point.
|
|
|
|
|
|
|
|
|
|
|
|
## Hierarchy
|
|
|
|
|
|
|
|
|
|
|
|
* **ContactFeature**
|
|
|
|
|
|
|
|
|
|
|
|
## Index
|
|
|
|
|
|
|
|
|
|
|
|
### Properties
|
|
|
|
|
|
|
|
|
|
|
|
* [indexA](contactfeature.md#indexa)
|
|
|
|
|
|
* [indexB](contactfeature.md#indexb)
|
|
|
|
|
|
* [typeA](contactfeature.md#typea)
|
|
|
|
|
|
* [typeB](contactfeature.md#typeb)
|
|
|
|
|
|
|
|
|
|
|
|
### Methods
|
|
|
|
|
|
|
|
|
|
|
|
* [set](contactfeature.md#set)
|
|
|
|
|
|
|
|
|
|
|
|
## Properties
|
|
|
|
|
|
|
|
|
|
|
|
### indexA
|
|
|
|
|
|
|
|
|
|
|
|
• **indexA**: *number*
|
|
|
|
|
|
|
2021-05-11 18:30:36 -07:00
|
|
|
|
*Defined in [src/collision/Manifold.ts:207](https://github.com/shakiba/planck.js/blob/acc3bd8/src/collision/Manifold.ts#L207)*
|
2021-04-16 17:10:15 +02:00
|
|
|
|
|
|
|
|
|
|
Feature index on shapeA
|
|
|
|
|
|
|
|
|
|
|
|
___
|
|
|
|
|
|
|
|
|
|
|
|
### indexB
|
|
|
|
|
|
|
|
|
|
|
|
• **indexB**: *number*
|
|
|
|
|
|
|
2021-05-11 18:30:36 -07:00
|
|
|
|
*Defined in [src/collision/Manifold.ts:211](https://github.com/shakiba/planck.js/blob/acc3bd8/src/collision/Manifold.ts#L211)*
|
2021-04-16 17:10:15 +02:00
|
|
|
|
|
|
|
|
|
|
Feature index on shapeB
|
|
|
|
|
|
|
|
|
|
|
|
___
|
|
|
|
|
|
|
|
|
|
|
|
### typeA
|
|
|
|
|
|
|
2021-05-02 17:18:33 -07:00
|
|
|
|
• **typeA**: *[ContactFeatureType](../enums/contactfeaturetype.md)*
|
2021-04-16 17:10:15 +02:00
|
|
|
|
|
2021-05-11 18:30:36 -07:00
|
|
|
|
*Defined in [src/collision/Manifold.ts:215](https://github.com/shakiba/planck.js/blob/acc3bd8/src/collision/Manifold.ts#L215)*
|
2021-04-16 17:10:15 +02:00
|
|
|
|
|
|
|
|
|
|
The feature type on shapeA
|
|
|
|
|
|
|
|
|
|
|
|
___
|
|
|
|
|
|
|
|
|
|
|
|
### typeB
|
|
|
|
|
|
|
2021-05-02 17:18:33 -07:00
|
|
|
|
• **typeB**: *[ContactFeatureType](../enums/contactfeaturetype.md)*
|
2021-04-16 17:10:15 +02:00
|
|
|
|
|
2021-05-11 18:30:36 -07:00
|
|
|
|
*Defined in [src/collision/Manifold.ts:219](https://github.com/shakiba/planck.js/blob/acc3bd8/src/collision/Manifold.ts#L219)*
|
2021-04-16 17:10:15 +02:00
|
|
|
|
|
|
|
|
|
|
The feature type on shapeB
|
|
|
|
|
|
|
|
|
|
|
|
## Methods
|
|
|
|
|
|
|
|
|
|
|
|
### set
|
|
|
|
|
|
|
|
|
|
|
|
▸ **set**(`o`: [ContactFeature](contactfeature.md)): *void*
|
|
|
|
|
|
|
2021-05-11 18:30:36 -07:00
|
|
|
|
*Defined in [src/collision/Manifold.ts:220](https://github.com/shakiba/planck.js/blob/acc3bd8/src/collision/Manifold.ts#L220)*
|
2021-04-16 17:10:15 +02:00
|
|
|
|
|
|
|
|
|
|
**Parameters:**
|
|
|
|
|
|
|
|
|
|
|
|
Name | Type |
|
|
|
|
|
|
------ | ------ |
|
|
|
|
|
|
`o` | [ContactFeature](contactfeature.md) |
|
|
|
|
|
|
|
|
|
|
|
|
**Returns:** *void*
|