PhysicsJointBuilderclass

Provides ability to generate a physics joint for a `Sandbox.Model` at runtime.

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 angular force/torque the joint can withstand before breaking.

Returns:float

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

The index of the first body connected by the joint.

Returns:int

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

The index of the second body connected by the joint.

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