Highroad Engine v1.3
Public Types | Public Member Functions | Public Attributes | Protected Member Functions | Properties | List of all members
MoreMountains.Tools.MMObjectBounds Class Reference
Inheritance diagram for MoreMountains.Tools.MMObjectBounds:
MoreMountains.Tools.MMPoolableObject

Public Types

enum  WaysToDetermineBounds { Collider , Collider2D , Renderer , 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

Vector3 Size [getset]
 

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

Vector3 MoreMountains.Tools.MMObjectBounds.Size
getset

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