# PhysicsUserData

> Custom user data. The physics system doesn't use this data, it is entirely for custom use.

## Definition

* **Type:** Struct
* **Namespace:** [Unity.U2D.Physics](/engine/6000.5/script-reference/unity/u2d/physics.md)
* **Assembly:** UnityEngine.PhysicsCore2DModule

```csharp
public struct PhysicsUserData
```

## Properties

| Property                                                                                                  | Description                                                                                                                                                                                                                     |
| --------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [boolValue](/engine/6000.5/script-reference/unity/u2d/physics/physicsuserdata/boolvalue.md)               | A custom bool.                                                                                                                                                                                                                  |
| [floatValue](/engine/6000.5/script-reference/unity/u2d/physics/physicsuserdata/floatvalue.md)             | A custom 32-bit float.                                                                                                                                                                                                          |
| [int64Value](/engine/6000.5/script-reference/unity/u2d/physics/physicsuserdata/int64value.md)             | A custom 64-bit long.                                                                                                                                                                                                           |
| [intValue](/engine/6000.5/script-reference/unity/u2d/physics/physicsuserdata/intvalue.md)                 | A custom 32-bit int.                                                                                                                                                                                                            |
| [objectValue](/engine/6000.5/script-reference/unity/u2d/physics/physicsuserdata/objectvalue.md)           | A custom Unity object. To get the [EntityId](/engine/6000.5/script-reference/unityengine/entityid.md) of the object, use [\_objectValueId](/engine/6000.5/script-reference/unity/u2d/physics/physicsuserdata/objectvalueid.md). |
| [objectValueId](/engine/6000.5/script-reference/unity/u2d/physics/physicsuserdata/objectvalueid.md)       | The EntityId of a Unity object. This is the object referred to with [\_objectValue](/engine/6000.5/script-reference/unity/u2d/physics/physicsuserdata/objectvalue.md)                                                           |
| [physicsMaskValue](/engine/6000.5/script-reference/unity/u2d/physics/physicsuserdata/physicsmaskvalue.md) | A custom 64-bit [PhysicsMask](/engine/6000.5/script-reference/unity/u2d/physics/physicsmask.md).                                                                                                                                |
