Feel  5.1
The best way to improve your game's feel and make it extra juicy
MoreMountains.Tools.MMObjectBounds Class Reference
Inheritance diagram for MoreMountains.Tools.MMObjectBounds:
MoreMountains.Tools.MMPoolableObject

Public Types

enum  WaysToDetermineBounds { WaysToDetermineBounds.Collider, WaysToDetermineBounds.Collider2D, WaysToDetermineBounds.Renderer, WaysToDetermineBounds.Undefined }
 

Public Member Functions

virtual Bounds GetBounds ()
 Returns the bounds of the object, based on what has been defined More...
 

Public Attributes

WaysToDetermineBounds BoundsBasedOn
 

Protected Member Functions

virtual void Reset ()
 When this component is added we define its bounds. More...
 
virtual void DefineBoundsChoice ()
 Tries to determine automatically what the bounds should be based on. In this order, it'll keep the last found of these : Collider2D, Collider or Renderer. If none of these is found, it'll be set as Undefined. More...
 

Properties

virtual Vector3 Size [get, set]
 

Member Enumeration Documentation

◆ WaysToDetermineBounds

Enumerator
Collider 
Collider2D 
Renderer 
Undefined 

Member Function Documentation

◆ DefineBoundsChoice()

virtual void MoreMountains.Tools.MMObjectBounds.DefineBoundsChoice ( )
protectedvirtual

Tries to determine automatically what the bounds should be based on. In this order, it'll keep the last found of these : Collider2D, Collider or Renderer. If none of these is found, it'll be set as Undefined.

◆ GetBounds()

virtual Bounds MoreMountains.Tools.MMObjectBounds.GetBounds ( )
virtual

Returns the bounds of the object, based on what has been defined

◆ Reset()

virtual void MoreMountains.Tools.MMObjectBounds.Reset ( )
protectedvirtual

When this component is added we define its bounds.

Member Data Documentation

◆ BoundsBasedOn

WaysToDetermineBounds MoreMountains.Tools.MMObjectBounds.BoundsBasedOn

Property Documentation

◆ Size

virtual Vector3 MoreMountains.Tools.MMObjectBounds.Size
getset

The documentation for this class was generated from the following file: