float Maximum

robot_2Generated
code_blocksInput

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 will then be used in the physics simulation to limit the force applied to weld joints.

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 joint setup
FixedJoint joint = new FixedJoint();
joint.Spring = springSettings;