79 lines
1.6 KiB
Markdown
79 lines
1.6 KiB
Markdown
[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*
|
||
|
||
*Defined in [src/collision/Manifold.ts:207](https://github.com/shakiba/planck.js/blob/acc3bd8/src/collision/Manifold.ts#L207)*
|
||
|
||
Feature index on shapeA
|
||
|
||
___
|
||
|
||
### indexB
|
||
|
||
• **indexB**: *number*
|
||
|
||
*Defined in [src/collision/Manifold.ts:211](https://github.com/shakiba/planck.js/blob/acc3bd8/src/collision/Manifold.ts#L211)*
|
||
|
||
Feature index on shapeB
|
||
|
||
___
|
||
|
||
### typeA
|
||
|
||
• **typeA**: *[ContactFeatureType](../enums/contactfeaturetype.md)*
|
||
|
||
*Defined in [src/collision/Manifold.ts:215](https://github.com/shakiba/planck.js/blob/acc3bd8/src/collision/Manifold.ts#L215)*
|
||
|
||
The feature type on shapeA
|
||
|
||
___
|
||
|
||
### typeB
|
||
|
||
• **typeB**: *[ContactFeatureType](../enums/contactfeaturetype.md)*
|
||
|
||
*Defined in [src/collision/Manifold.ts:219](https://github.com/shakiba/planck.js/blob/acc3bd8/src/collision/Manifold.ts#L219)*
|
||
|
||
The feature type on shapeB
|
||
|
||
## Methods
|
||
|
||
### set
|
||
|
||
▸ **set**(`o`: [ContactFeature](contactfeature.md)): *void*
|
||
|
||
*Defined in [src/collision/Manifold.ts:220](https://github.com/shakiba/planck.js/blob/acc3bd8/src/collision/Manifold.ts#L220)*
|
||
|
||
**Parameters:**
|
||
|
||
Name | Type |
|
||
------ | ------ |
|
||
`o` | [ContactFeature](contactfeature.md) |
|
||
|
||
**Returns:** *void*
|