Class SolverTypeAuthoring
Authoring component that defines which type of solver to use for physics calculations, including contacts and joints, allowing the physics engine to prioritize either accuracy or performance for specific bodies.
Inherited Members
Object.MemberwiseClone()
Object.InstantiateAsync<T>(T)
Object.InstantiateAsync<T>(T, Transform)
Object.InstantiateAsync<T>(T, Vector3, Quaternion)
Object.InstantiateAsync<T>(T, Transform, Vector3, Quaternion)
Object.Instantiate<T>(T, InstantiateParameters)
Object.Instantiate<T>(T, Vector3, Quaternion, InstantiateParameters)
Object.FindObjectsByType<T>(FindObjectsSortMode)
Object.FindObjectsByType<T>(FindObjectsInactive, FindObjectsSortMode)
Object.FindFirstObjectByType<T>()
Object.FindAnyObjectByType<T>()
Object.FindFirstObjectByType<T>(FindObjectsInactive)
Object.FindAnyObjectByType<T>(FindObjectsInactive)
Object.FindObjectsByType<T>()
Object.FindObjectsByType<T>(FindObjectsInactive)
Namespace: Unity.Physics.Authoring
Assembly: Unity.Physics.Hybrid.dll
Syntax
[Icon("Packages/com.unity.physics/Unity.Physics.Editor/Editor Default Resources/Icons/d_Solver@64.png")]
[AddComponentMenu("Entities/Physics/Solver Type")]
[HelpURL("https://docs.unity3d.com/Packages/com.unity.physics@latest/index.html?subfolder=/api/Unity.Physics.Authoring.SolverTypeAuthoring.html")]
[DisallowMultipleComponent]
public class SolverTypeAuthoring : MonoBehaviour
Fields
ContactSolverType
Specifies the type of solver used for contacts with this body.
Use Direct for higher accuracy and Iterative for better performance. If no Solver Type component is attached, Iterative is used by default.
Declaration
[Tooltip("Specifies the type of solver used for contacts with this body.\nUse <b>Direct</b> for higher accuracy and <b>Iterative</b> for better performance. If no Solver Type component is attached, <b>Iterative</b> is used by default.")]
public SolverType ContactSolverType
Field Value
| Type | Description |
|---|---|
| SolverType |
JointSolverType
Specifies the type of solver used for joints attached to this body.
Use Direct for higher accuracy and Iterative for better performance. If no Solver Type component is attached, Iterative is used by default.
Declaration
[Tooltip("Specifies the type of solver used for joints attached to this body.\nUse <b>Direct</b> for higher accuracy and <b>Iterative</b> for better performance. If no Solver Type component is attached, <b>Iterative</b> is used by default.")]
public SolverType JointSolverType
Field Value
| Type | Description |
|---|---|
| SolverType |