TopDown Engine  v4.2
MoreMountains.Tools.MMObjectBounds Class Reference
Inheritance diagram for MoreMountains.Tools.MMObjectBounds:
MoreMountains.Tools.MMPoolableObject MoreMountains.TopDownEngine.Projectile MoreMountains.TopDownEngine.BouncyProjectile MoreMountains.TopDownEngine.PhysicsProjectile MoreMountains.TopDownEngine.ThrownObject

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: