Struct JacobianPolygonData
Stores triangle vertex position data for two intersecting colliders, including main transform data and the leaf transform from a static mesh.
Inherited Members
Namespace: Unity.Physics
Assembly: Unity.Physics.dll
Syntax
public struct JacobianPolygonData
Fields
CenterOfMass
Derived from the opposing collider’s center of mass. If Body A collides with Body B, A’s data is stored while the center of mass is taken from B.
Declaration
public float3 CenterOfMass
Field Value
| Type | Description |
|---|---|
| float3 |
ContactPoint
The world-space position where two colliders make contact during the Jacobian Build stage. This point is later used in the solve phase to determine whether the predicted collision will occur.
Declaration
public float3 ContactPoint
Field Value
| Type | Description |
|---|---|
| float3 |
IsBodyAStatic
Indicates whether Body A or B is static. This is required for setting other properties.
Declaration
public bool IsBodyAStatic
Field Value
| Type | Description |
|---|---|
| bool |
IsBodyBStatic
Indicates whether Body A or B is static. This is required for setting other properties.
Declaration
public bool IsBodyBStatic
Field Value
| Type | Description |
|---|---|
| bool |
IsValid
Determines whether the LeafTransform is a valid polygon child.
Declaration
public bool IsValid
Field Value
| Type | Description |
|---|---|
| bool |
LeafTransform
Stores the position, rotation, and scale of the leaf polygon used for ray evaluation.
Declaration
public AffineTransform LeafTransform
Field Value
| Type | Description |
|---|---|
| AffineTransform |
Normal
The normal contact point is used to determine the other point where the collision occurs.
Declaration
public float3 Normal
Field Value
| Type | Description |
|---|---|
| float3 |
Transform
Represents the static body's position, rotation, and scale.
Declaration
public AffineTransform Transform
Field Value
| Type | Description |
|---|---|
| AffineTransform |
Vertex0
Define the triangle polygon from (LeafTransform) used to predict potential collisions in the next frame.
Declaration
public float3 Vertex0
Field Value
| Type | Description |
|---|---|
| float3 |
Vertex1
Define the triangle polygon from (LeafTransform) used to predict potential collisions in the next frame.
Declaration
public float3 Vertex1
Field Value
| Type | Description |
|---|---|
| float3 |
Vertex2
Define the triangle polygon from (LeafTransform) used to predict potential collisions in the next frame.
Declaration
public float3 Vertex2
Field Value
| Type | Description |
|---|---|
| float3 |