Description
The Maximum
field in the PhysicsSpring
struct represents the maximum force that can be applied to weld joints. It is important to note that this field is not used for breaking the joint, but rather to define the upper limit of force that the joint can withstand.
Usage
To use the Maximum
field, you need to create an instance of the PhysicsSpring
struct and set the Maximum
field to the desired force value. This value should be a positive floating-point number representing the maximum force in the appropriate units for your simulation.
Example
// Example of setting the Maximum force for a PhysicsSpring
PhysicsSpring springSettings = new PhysicsSpring();
springSettings.Maximum = 1000.0f; // Set the maximum force to 1000 units
// Use springSettings in a weld joint setup
FixedJoint joint = new FixedJoint();
joint.Spring = springSettings;