-
Notifications
You must be signed in to change notification settings - Fork 16
CollisionSettings
Tommo J. Phillips edited this page Oct 22, 2023
·
2 revisions
Namespace: TommoJProductions.ModApi.Attachable
Represents the parts collision settings.
public class CollisionSettingsInheritance Object → CollisionSettings
Represents the collision detection mode on installed parts.
public CollisionDetectionMode installedCollisionDetectionMode;Represents the collision detection mode on not installed parts. (pickable items)
public CollisionDetectionMode notInstalledCollisionDetectionMode;Represents the physic material.
public PhysicMaterial physicMaterial;Represents the current physic material type setting.
public PhysicMaterialType physicMaterialType;Provided colliders. used to set physic mat on initailizePart if PartSettings.setPhysicsMaterialOnInitialisePart is true. and CollisionSettings.physicMaterialType is set to .
public Collider[] providedColliders;Represents the default part physic material.
public static PhysicMaterial defaultPhysicMaterial;Inits new isntance
public CollisionSettings()inits new instacne and assigns instance variables.
public CollisionSettings(CollisionSettings cs)