Description
The Scale
property of the PhysicsShape
class represents the scale of the physics shape in the 3D space. It is of type Vector3
, which means it can hold three-dimensional vector values representing the scale along the X, Y, and Z axes.
Note: This property is marked as obsolete, indicating that it is deprecated and may be removed in future versions. It is recommended to avoid using this property in new code and to refactor existing code to remove its usage.
Usage
Since the Scale
property is marked as obsolete, it is advised not to use it in your code. Instead, consider using alternative methods or properties provided by the PhysicsShape
class or related classes to achieve the desired functionality.
Example
// Example of accessing the Scale property (not recommended due to obsolescence)
PhysicsShape shape = new PhysicsShape();
Vector3 scale = shape.Scale; // Obsolete usage
// Recommended: Avoid using the Scale property and look for alternative solutions.