60 lines
1.1 KiB
Markdown
60 lines
1.1 KiB
Markdown
[Planck.js API Doc](../README.md) › [Globals](../globals.md) › [ContactID](contactid.md)
|
||
|
||
# Class: ContactID
|
||
|
||
Contact ids to facilitate warm starting.
|
||
|
||
## Hierarchy
|
||
|
||
* **ContactID**
|
||
|
||
## Index
|
||
|
||
### Properties
|
||
|
||
* [cf](contactid.md#cf)
|
||
|
||
### Accessors
|
||
|
||
* [key](contactid.md#key)
|
||
|
||
### Methods
|
||
|
||
* [set](contactid.md#set)
|
||
|
||
## Properties
|
||
|
||
### cf
|
||
|
||
• **cf**: *[ContactFeature](contactfeature.md)* = new ContactFeature()
|
||
|
||
*Defined in [src/collision/Manifold.ts:185](https://github.com/shakiba/planck.js/blob/acc3bd8/src/collision/Manifold.ts#L185)*
|
||
|
||
## Accessors
|
||
|
||
### key
|
||
|
||
• **get key**(): *number*
|
||
|
||
*Defined in [src/collision/Manifold.ts:190](https://github.com/shakiba/planck.js/blob/acc3bd8/src/collision/Manifold.ts#L190)*
|
||
|
||
Used to quickly compare contact ids.
|
||
|
||
**Returns:** *number*
|
||
|
||
## Methods
|
||
|
||
### set
|
||
|
||
▸ **set**(`o`: [ContactID](contactid.md)): *void*
|
||
|
||
*Defined in [src/collision/Manifold.ts:194](https://github.com/shakiba/planck.js/blob/acc3bd8/src/collision/Manifold.ts#L194)*
|
||
|
||
**Parameters:**
|
||
|
||
Name | Type |
|
||
------ | ------ |
|
||
`o` | [ContactID](contactid.md) |
|
||
|
||
**Returns:** *void*
|