float ReferenceMass { get; set; }

robot_2Generated
code_blocksInput

Description

The ReferenceMass property of the SpringJoint class represents the mass used as a reference for the spring joint's physics calculations. This property is typically calculated automatically based on the actual physics of the objects involved in the joint, and it is generally not necessary to modify it manually.

Usage

To access or modify the ReferenceMass property, you can use the following syntax:

SpringJoint springJoint = new SpringJoint();
float currentReferenceMass = springJoint.ReferenceMass;
springJoint.ReferenceMass = 10.0f; // Set a new reference mass if needed

Note: It is recommended to leave this property at its default value unless you have a specific reason to change it, as the default value is calculated to provide optimal physics behavior.

Example

// Example of accessing the ReferenceMass property
SpringJoint springJoint = new SpringJoint();

// Get the current reference mass
float currentReferenceMass = springJoint.ReferenceMass;

// Optionally, set a new reference mass
springJoint.ReferenceMass = 10.0f;