mirror of
https://github.com/BlackMATov/unity-iso-tools.git
synced 2025-12-13 15:52:03 +07:00
fix 5.4 physics warning
This commit is contained in:
@@ -125,6 +125,25 @@ namespace IsoTools {
|
||||
}
|
||||
}
|
||||
|
||||
#if UNITY_5_4_OR_NEWER
|
||||
public int solverIterations {
|
||||
get { return realRigidbody ? realRigidbody.solverIterations : 0; }
|
||||
set {
|
||||
if ( realRigidbody ) {
|
||||
realRigidbody.solverIterations = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public int solverVelocityIterations {
|
||||
get { return realRigidbody ? realRigidbody.solverVelocityIterations : 0; }
|
||||
set {
|
||||
if ( realRigidbody ) {
|
||||
realRigidbody.solverVelocityIterations = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
#else
|
||||
public int solverIterationCount {
|
||||
get { return realRigidbody ? realRigidbody.solverIterationCount : 0; }
|
||||
set {
|
||||
@@ -134,6 +153,16 @@ namespace IsoTools {
|
||||
}
|
||||
}
|
||||
|
||||
public int solverVelocityIterationCount {
|
||||
get { return realRigidbody ? realRigidbody.solverVelocityIterationCount : 0; }
|
||||
set {
|
||||
if ( realRigidbody ) {
|
||||
realRigidbody.solverVelocityIterationCount = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
public bool useConeFriction {
|
||||
get { return realRigidbody ? realRigidbody.useConeFriction : false; }
|
||||
set {
|
||||
|
||||
Reference in New Issue
Block a user