Infinite Runner Engine v1.9
Public Attributes | Protected Member Functions | Protected Attributes | List of all members
MoreMountains.InfiniteRunnerEngine.RepositionOnStart2D Class Reference

This class repositions a 2D object when enabled if it's at the same x as a platform More...

Inheritance diagram for MoreMountains.InfiniteRunnerEngine.RepositionOnStart2D:

Public Attributes

Vector3 PositionOffset
 how should we move the object if it encounters an obstacle More...
 

Protected Member Functions

virtual void OnEnable ()
 
virtual void Reposition (Vector3 repositionOrigin)
 Reposition the object from a specific point More...
 

Protected Attributes

float RaycastLength = 20f
 

Detailed Description

This class repositions a 2D object when enabled if it's at the same x as a platform

Member Function Documentation

◆ OnEnable()

virtual void MoreMountains.InfiniteRunnerEngine.RepositionOnStart2D.OnEnable ( )
protectedvirtual

◆ Reposition()

virtual void MoreMountains.InfiniteRunnerEngine.RepositionOnStart2D.Reposition ( Vector3  repositionOrigin)
protectedvirtual

Reposition the object from a specific point

Parameters
repositionOriginReposition origin.

Member Data Documentation

◆ PositionOffset

Vector3 MoreMountains.InfiniteRunnerEngine.RepositionOnStart2D.PositionOffset

how should we move the object if it encounters an obstacle

◆ RaycastLength

float MoreMountains.InfiniteRunnerEngine.RepositionOnStart2D.RaycastLength = 20f
protected

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