Api Sandbox PhysicsJointBuilder
class

PhysicsJointBuilder

public abstract class PhysicsJointBuilder

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

Properties

Name Type Description
Body1 Int32 The index of the first body connected by the joint.
Body2 Int32 The index of the second body connected by the joint.
Frame1 Transform The joint frame in the local space of Body1.
Frame2 Transform The joint frame in the local space of Body2.
EnableCollision Boolean Whether the connected bodies can collide with each other.
LinearStrength Single The maximum linear force the joint can withstand before breaking.
AngularStrength Single The maximum angular force/torque the joint can withstand before breaking.
Assembly: Sandbox.Engine Namespace: Sandbox Full Name: Sandbox.PhysicsJointBuilder