# Class ShapeContact

The contact info between two shapes.

- Defined in geometry/contact.d.ts:6

#####
Index

### Constructors

constructor

### Properties

distance
normal1
normal2
point1
point2

### Methods

fromRaw

## Constructors

### constructor

- new ShapeContact(dist, point1, point2, normal1, normal2): ShapeContact

- #### Parameters

  - dist: number
  - point1: Vector
  - point2: Vector
  - normal1: Vector
  - normal2: Vector

  #### Returns ShapeContact

  - Defined in geometry/contact.d.ts:29

## Properties

### distance

distance: number

Distance between the two contact points. If this is negative, this contact represents a penetration.

- Defined in geometry/contact.d.ts:11

### normal1

normal1: Vector

Contact normal, pointing towards the exterior of the first shape.

- Defined in geometry/contact.d.ts:23

### normal2

normal2: Vector

Contact normal, pointing towards the exterior of the second shape. If these contact data are expressed in world-space, this normal is equal to -normal1.

- Defined in geometry/contact.d.ts:28

### point1

point1: Vector

Position of the contact on the first shape.

- Defined in geometry/contact.d.ts:15

### point2

point2: Vector

Position of the contact on the second shape.

- Defined in geometry/contact.d.ts:19

## Methods

### `Static` fromRaw

- fromRaw(raw): ShapeContact

- #### Parameters

  - raw: RawShapeContact

  #### Returns ShapeContact

  - Defined in geometry/contact.d.ts:30