Click or drag to resize
FlexibleCollider Class
A Component that wraps a Collider, which can be easily swapped for different shapes, sizes, or orientations at run-time, and which can be synchronized with a corresponding part across a plane of symmetry.
Inheritance Hierarchy
SystemObject
  Object
    Component
      Behaviour
        MonoBehaviour
          Candlelight.PhysicsFlexibleCollider
            Candlelight.PhysicsPhysicalBody

Namespace: Candlelight.Physics
Assembly: Assembly-CSharp-firstpass (in Assembly-CSharp-firstpass.dll) Version: 0.0.0.0
Syntax
C#
public class FlexibleCollider : MonoBehaviour

The FlexibleCollider type exposes the following members.

Methods
  NameDescription
Protected methodOnCollisionEnter
Raises the collision enter event.
Protected methodOnCollisionExit
Raises the collision exit event.
Protected methodOnCollisionStay
Raises the collision stay event.
Protected methodOnDisable
Raises the disable event.
Protected methodOnEnable
Raises the enable event.
Public methodOnModifySymmetricalProperty
Raises the modify symmetrical property event. This method is called when a property is set that needs to be pushed to the corresponding FlexibleCollider. You can invoke it manually if you need to push settings that are not managed on this object directly, such as Joint limits.
Protected methodOnSynchronizeSymmetricalProperties
Raises the synchronize symmetrical properties event. Override this method if the child class defines other properties that need to be reflected to the corresponding part. This method will only be called if this FlexibleCollider is not currently applying symmetry and CorrespondingObject is not null.
Protected methodStart
Ensure the collider is on the correct layer if it was already rotated before this instance loaded.
Top
Extension Methods
  NameDescription
Public Extension MethodGetPrefabName
Gets the name of the prefab associated with the supplied instance.
(Defined by ObjectX.)
Public Extension MethodOpenReferencePage
Opens a reference web page generated for the specified object.
(Defined by ObjectX.)
Top
Properties
  NameDescription
Public propertyCenter
Gets or sets the center of the Collider in this object's space.
Public propertyCollider
Gets the collider.
Public propertyCorrespondingObject

Gets the corresponding FlexibleCollider across a plane of symmetry.

It will be the FlexibleCollider component on the CorrespondingTransform of the SymmetryMapper assigned to this instance.

Public propertyLocalRotation
Gets or sets the Collider's local rotation in this object's space.
Public propertyOnCollisionEnterEvent
Gets the on collision enter event.
Public propertyOnCollisionExitEvent
Gets the on collision exit event.
Public propertyOnCollisionStayEvent
Gets the on collision stay event.
Public propertyRunTimeSync
Gets or sets a value describing whether or not this FlexibleCollider should continue to sync with its corresponding part at run-time.
Public propertyShape
Gets or sets the shape of the Collider.
Public propertySize
Gets or sets the size of the Collider.
Public propertySymmetryMapper

Gets or sets a SymmetricalTransform component on this GameObject, which allows symmetrical property edits.

If it is not and its CorrespondingTransform is assigned and has a FlexibleCollider component of this object's type, then all changes made to properties on this object will be reflected across the plane of symmetry.

Public propertyTransform
Gets this object's Transform.
Top
See Also