API ReferenceSandbox
PhysicsJointBuilderclass
Provides ability to generate a physics joint for a `Sandbox.Model` at runtime.
object→PhysicsJointBuilder
Constructors1
Showing 1 constructors
protected PhysicsJointBuilder()
No results match this filter.
Properties7
Showing 7 properties
public float Sandbox.PhysicsJointBuilder.AngularStrength { get; set; }
The maximum angular force/torque the joint can withstand before breaking.
Returns:
float—public int Sandbox.PhysicsJointBuilder.Body1 { get; set; }
The index of the first body connected by the joint.
Returns:
int—public int Sandbox.PhysicsJointBuilder.Body2 { get; set; }
The index of the second body connected by the joint.
Returns:
int—public bool Sandbox.PhysicsJointBuilder.EnableCollision { get; set; }
Whether the connected bodies can collide with each other.
Returns:
bool—public Transform Sandbox.PhysicsJointBuilder.Frame1 { get; set; }
The joint frame in the local space of `Sandbox.PhysicsJointBuilder.Body1`.
public Transform Sandbox.PhysicsJointBuilder.Frame2 { get; set; }
The joint frame in the local space of `Sandbox.PhysicsJointBuilder.Body2`.
public float Sandbox.PhysicsJointBuilder.LinearStrength { get; set; }
The maximum linear force the joint can withstand before breaking.
Returns:
float—No results match this filter.