PhysicsJointBuilderclass

Configures a joint between two model physics bodies.

objectPhysicsJointBuilder
Namespace
Sandbox
Assembly
Sandbox.Engine
Declaration
public abstract class Sandbox.PhysicsJointBuilder

Constructors1

Showing 1 constructors

Properties7

Showing 7 properties

public float Sandbox.PhysicsJointBuilder.AngularStrength { get; set; }PUBLICGETSET

The maximum torque the joint can withstand before breaking.

Returns:float

public int Sandbox.PhysicsJointBuilder.Body1 { get; set; }PUBLICGETSET

The index of the first connected body, using the order bodies were added to the model.

Returns:int

public int Sandbox.PhysicsJointBuilder.Body2 { get; set; }PUBLICGETSET

The index of the second connected body, using the order bodies were added to the model.

Returns:int

public bool Sandbox.PhysicsJointBuilder.EnableCollision { get; set; }PUBLICGETSET

Whether the connected bodies can collide with each other.

Returns:bool

public float Sandbox.PhysicsJointBuilder.LinearStrength { get; set; }PUBLICGETSET

The maximum linear force the joint can withstand before breaking.

Returns:float

On this page