Rename addPhysics to pushable

This commit is contained in:
Nick 2023-08-11 18:19:58 -04:00
parent 774680ebfe
commit 7008c546d6
4 changed files with 3 additions and 5 deletions

View File

@ -33,7 +33,7 @@ namespace NewHorizons.Builder.General
owRigidBody.EnableKinematicSimulation(); owRigidBody.EnableKinematicSimulation();
rigidBody.mass = 10000; rigidBody.mass = 10000;
if (config.Base.addPhysics) if (config.Base.pushable)
{ {
// hack: make all mesh colliders convex // hack: make all mesh colliders convex
// triggers are already convex // triggers are already convex

View File

@ -84,7 +84,7 @@ namespace NewHorizons.Builder.Orbital
Delay.FireOnNextUpdate(orbitLine.InitializeLineRenderer); Delay.FireOnNextUpdate(orbitLine.InitializeLineRenderer);
// If the planet has physics and a regular orbit line, make sure that when it's bumped into the old orbit line vanishes // If the planet has physics and a regular orbit line, make sure that when it's bumped into the old orbit line vanishes
if (config.Base.addPhysics && !config.Orbit.trackingOrbitLine) if (config.Base.pushable && !config.Orbit.trackingOrbitLine)
{ {
var impactSensor = planetGO.GetComponent<ImpactSensor>(); var impactSensor = planetGO.GetComponent<ImpactSensor>();
impactSensor.OnImpact += (ImpactData _) => impactSensor.OnImpact += (ImpactData _) =>

View File

@ -77,7 +77,7 @@ namespace NewHorizons.External.Modules
/// This is meant for stuff like satellites which are relatively simple and can be de-orbited. /// This is meant for stuff like satellites which are relatively simple and can be de-orbited.
/// If you are using an orbit line but a tracking line, it will be removed when the planet is bumped in to. /// If you are using an orbit line but a tracking line, it will be removed when the planet is bumped in to.
/// </summary> /// </summary>
public bool addPhysics; public bool pushable;
#region Obsolete #region Obsolete

View File

@ -622,8 +622,6 @@ namespace NewHorizons
{ {
try try
{ {
if (mod.ModHelper.Manifest.Filename.Contains("Extinction")) return;
if (_firstLoad) if (_firstLoad)
{ {
MountedAddons.Add(mod); MountedAddons.Add(mod);