API ReferenceSandbox
PhysicsJointBuilderExtensionsclass
Fluent configuration methods shared by all physics joint builders.
object→PhysicsJointBuilderExtensions
Methods7
Showing 7 methods
public static T WithAngularStrength(T b, float v)
Sets the joint's breaking torque.
| Parameter | Type | Description |
|---|---|---|
| b | T | The joint builder. |
| v | float | The maximum torque. |
Returns:
TThe joint builder.public static T WithBody1(T b, int v)
Sets the first connected body.
| Parameter | Type | Description |
|---|---|---|
| b | T | The joint builder. |
| v | int | The body index. |
Returns:
TThe joint builder.public static T WithBody2(T b, int v)
Sets the second connected body.
| Parameter | Type | Description |
|---|---|---|
| b | T | The joint builder. |
| v | int | The body index. |
Returns:
TThe joint builder.public static T WithCollision(T b, bool v)
Sets whether the connected bodies can collide.
| Parameter | Type | Description |
|---|---|---|
| b | T | The joint builder. |
| v | bool | Whether collision is enabled. |
Returns:
TThe joint builder.public static T WithFrame1(T b, Transform v)
Sets the joint frame in the first body's local space.
| Parameter | Type | Description |
|---|---|---|
| b | T | The joint builder. |
| v | Transform | The local joint frame. |
Returns:
TThe joint builder.public static T WithFrame2(T b, Transform v)
Sets the joint frame in the second body's local space.
| Parameter | Type | Description |
|---|---|---|
| b | T | The joint builder. |
| v | Transform | The local joint frame. |
Returns:
TThe joint builder.public static T WithLinearStrength(T b, float v)
Sets the joint's breaking force.
| Parameter | Type | Description |
|---|---|---|
| b | T | The joint builder. |
| v | float | The maximum linear force. |
Returns:
TThe joint builder.No results match this filter.