JointFactory
Declaration
public static class tainicom.Aether.Physics2D.Dynamics.Joints.JointFactory
An easy to use factory for using joints.
Methods
CreateMotorJoint static
MotorJoint CreateMotorJoint(World world, Body bodyA, Body bodyB, bool useWorldCoordinates = false)
Parameters:
| Name | Type | Description |
|---|---|---|
world |
tainicom.Aether.Physics2D.Dynamics.World |
|
bodyA |
tainicom.Aether.Physics2D.Dynamics.Body |
|
bodyB |
tainicom.Aether.Physics2D.Dynamics.Body |
|
useWorldCoordinates |
System.Boolean = false |
CreateRevoluteJoint static
RevoluteJoint CreateRevoluteJoint(World world, Body bodyA, Body bodyB, Vector2 anchorA, Vector2 anchorB, bool useWorldCoordinates = false)
Parameters:
| Name | Type | Description |
|---|---|---|
world |
tainicom.Aether.Physics2D.Dynamics.World |
|
bodyA |
tainicom.Aether.Physics2D.Dynamics.Body |
|
bodyB |
tainicom.Aether.Physics2D.Dynamics.Body |
|
anchorA |
Strawberry.Math.Vector2 |
|
anchorB |
Strawberry.Math.Vector2 |
|
useWorldCoordinates |
System.Boolean = false |
CreateRevoluteJoint static
RevoluteJoint CreateRevoluteJoint(World world, Body bodyA, Body bodyB, Vector2 anchor)
Parameters:
| Name | Type | Description |
|---|---|---|
world |
tainicom.Aether.Physics2D.Dynamics.World |
|
bodyA |
tainicom.Aether.Physics2D.Dynamics.Body |
|
bodyB |
tainicom.Aether.Physics2D.Dynamics.Body |
|
anchor |
Strawberry.Math.Vector2 |
CreateRopeJoint static
RopeJoint CreateRopeJoint(World world, Body bodyA, Body bodyB, Vector2 anchorA, Vector2 anchorB, bool useWorldCoordinates = false)
Parameters:
| Name | Type | Description |
|---|---|---|
world |
tainicom.Aether.Physics2D.Dynamics.World |
|
bodyA |
tainicom.Aether.Physics2D.Dynamics.Body |
|
bodyB |
tainicom.Aether.Physics2D.Dynamics.Body |
|
anchorA |
Strawberry.Math.Vector2 |
|
anchorB |
Strawberry.Math.Vector2 |
|
useWorldCoordinates |
System.Boolean = false |
CreateWeldJoint static
WeldJoint CreateWeldJoint(World world, Body bodyA, Body bodyB, Vector2 anchorA, Vector2 anchorB, bool useWorldCoordinates = false)
Parameters:
| Name | Type | Description |
|---|---|---|
world |
tainicom.Aether.Physics2D.Dynamics.World |
|
bodyA |
tainicom.Aether.Physics2D.Dynamics.Body |
|
bodyB |
tainicom.Aether.Physics2D.Dynamics.Body |
|
anchorA |
Strawberry.Math.Vector2 |
|
anchorB |
Strawberry.Math.Vector2 |
|
useWorldCoordinates |
System.Boolean = false |
CreatePrismaticJoint static
PrismaticJoint CreatePrismaticJoint(World world, Body bodyA, Body bodyB, Vector2 anchor, Vector2 axis, bool useWorldCoordinates = false)
Parameters:
| Name | Type | Description |
|---|---|---|
world |
tainicom.Aether.Physics2D.Dynamics.World |
|
bodyA |
tainicom.Aether.Physics2D.Dynamics.Body |
|
bodyB |
tainicom.Aether.Physics2D.Dynamics.Body |
|
anchor |
Strawberry.Math.Vector2 |
|
axis |
Strawberry.Math.Vector2 |
|
useWorldCoordinates |
System.Boolean = false |
CreateWheelJoint static
WheelJoint CreateWheelJoint(World world, Body bodyA, Body bodyB, Vector2 anchor, Vector2 axis, bool useWorldCoordinates = false)
Parameters:
| Name | Type | Description |
|---|---|---|
world |
tainicom.Aether.Physics2D.Dynamics.World |
|
bodyA |
tainicom.Aether.Physics2D.Dynamics.Body |
|
bodyB |
tainicom.Aether.Physics2D.Dynamics.Body |
|
anchor |
Strawberry.Math.Vector2 |
|
axis |
Strawberry.Math.Vector2 |
|
useWorldCoordinates |
System.Boolean = false |
CreateWheelJoint static
WheelJoint CreateWheelJoint(World world, Body bodyA, Body bodyB, Vector2 axis)
Parameters:
| Name | Type | Description |
|---|---|---|
world |
tainicom.Aether.Physics2D.Dynamics.World |
|
bodyA |
tainicom.Aether.Physics2D.Dynamics.Body |
|
bodyB |
tainicom.Aether.Physics2D.Dynamics.Body |
|
axis |
Strawberry.Math.Vector2 |
CreateAngleJoint static
AngleJoint CreateAngleJoint(World world, Body bodyA, Body bodyB)
Parameters:
| Name | Type | Description |
|---|---|---|
world |
tainicom.Aether.Physics2D.Dynamics.World |
|
bodyA |
tainicom.Aether.Physics2D.Dynamics.Body |
|
bodyB |
tainicom.Aether.Physics2D.Dynamics.Body |
CreateDistanceJoint static
DistanceJoint CreateDistanceJoint(World world, Body bodyA, Body bodyB, Vector2 anchorA, Vector2 anchorB, bool useWorldCoordinates = false)
Parameters:
| Name | Type | Description |
|---|---|---|
world |
tainicom.Aether.Physics2D.Dynamics.World |
|
bodyA |
tainicom.Aether.Physics2D.Dynamics.Body |
|
bodyB |
tainicom.Aether.Physics2D.Dynamics.Body |
|
anchorA |
Strawberry.Math.Vector2 |
|
anchorB |
Strawberry.Math.Vector2 |
|
useWorldCoordinates |
System.Boolean = false |
CreateDistanceJoint static
DistanceJoint CreateDistanceJoint(World world, Body bodyA, Body bodyB)
Parameters:
| Name | Type | Description |
|---|---|---|
world |
tainicom.Aether.Physics2D.Dynamics.World |
|
bodyA |
tainicom.Aether.Physics2D.Dynamics.Body |
|
bodyB |
tainicom.Aether.Physics2D.Dynamics.Body |
CreateFrictionJoint static
FrictionJoint CreateFrictionJoint(World world, Body bodyA, Body bodyB, Vector2 anchor, bool useWorldCoordinates = false)
Parameters:
| Name | Type | Description |
|---|---|---|
world |
tainicom.Aether.Physics2D.Dynamics.World |
|
bodyA |
tainicom.Aether.Physics2D.Dynamics.Body |
|
bodyB |
tainicom.Aether.Physics2D.Dynamics.Body |
|
anchor |
Strawberry.Math.Vector2 |
|
useWorldCoordinates |
System.Boolean = false |
CreateFrictionJoint static
FrictionJoint CreateFrictionJoint(World world, Body bodyA, Body bodyB)
Parameters:
| Name | Type | Description |
|---|---|---|
world |
tainicom.Aether.Physics2D.Dynamics.World |
|
bodyA |
tainicom.Aether.Physics2D.Dynamics.Body |
|
bodyB |
tainicom.Aether.Physics2D.Dynamics.Body |
CreateGearJoint static
GearJoint CreateGearJoint(World world, Body bodyA, Body bodyB, Joint jointA, Joint jointB, float ratio)
Parameters:
| Name | Type | Description |
|---|---|---|
world |
tainicom.Aether.Physics2D.Dynamics.World |
|
bodyA |
tainicom.Aether.Physics2D.Dynamics.Body |
|
bodyB |
tainicom.Aether.Physics2D.Dynamics.Body |
|
jointA |
tainicom.Aether.Physics2D.Dynamics.Joints.Joint |
|
jointB |
tainicom.Aether.Physics2D.Dynamics.Joints.Joint |
|
ratio |
System.Single |
CreatePulleyJoint static
PulleyJoint CreatePulleyJoint(World world, Body bodyA, Body bodyB, Vector2 anchorA, Vector2 anchorB, Vector2 worldAnchorA, Vector2 worldAnchorB, float ratio, bool useWorldCoordinates = false)
Parameters:
| Name | Type | Description |
|---|---|---|
world |
tainicom.Aether.Physics2D.Dynamics.World |
|
bodyA |
tainicom.Aether.Physics2D.Dynamics.Body |
|
bodyB |
tainicom.Aether.Physics2D.Dynamics.Body |
|
anchorA |
Strawberry.Math.Vector2 |
|
anchorB |
Strawberry.Math.Vector2 |
|
worldAnchorA |
Strawberry.Math.Vector2 |
|
worldAnchorB |
Strawberry.Math.Vector2 |
|
ratio |
System.Single |
|
useWorldCoordinates |
System.Boolean = false |
CreateFixedMouseJoint static
FixedMouseJoint CreateFixedMouseJoint(World world, Body body, Vector2 worldAnchor)
Parameters:
| Name | Type | Description |
|---|---|---|
world |
tainicom.Aether.Physics2D.Dynamics.World |
|
body |
tainicom.Aether.Physics2D.Dynamics.Body |
|
worldAnchor |
Strawberry.Math.Vector2 |