C# Class ScrollBase

Inheritance: LMWidgets.LeapPhysicsBase
Show file Open project: leapmotion/ImageGrid

Public Properties

Property Type Description
ContainerBottomBound Transform
ContainerTopBound Transform
ContentBottomBound Transform
ContentTopBound Transform
ContentTransform Transform
Drag float
InteractionScale float
SnapSpringForce float

Protected Properties

Property Type Description
m_contentPivot Vector3
m_dampingForce float
m_velocity float

Protected Methods

Method Description
ApplyConstraints ( ) : void
ApplyInteractions ( ) : void
ApplyPhysics ( ) : void
ResetPivots ( ) : void
Start ( ) : void
applyDrag ( ) : void
applyOverrunSpringForces ( ) : void

Applies a spring force to velocity to return content to scroller bounds.

applyVelocity ( ) : void
calculate1DSpringForce ( float offsetVector ) : float
calculateOverrunMagnitude ( ) : float

Method Details

ApplyConstraints() protected method

protected ApplyConstraints ( ) : void
return void

ApplyInteractions() protected method

protected ApplyInteractions ( ) : void
return void

ApplyPhysics() protected method

protected ApplyPhysics ( ) : void
return void

ResetPivots() protected method

protected ResetPivots ( ) : void
return void

Start() protected method

protected Start ( ) : void
return void

applyDrag() protected method

protected applyDrag ( ) : void
return void

applyOverrunSpringForces() protected method

Applies a spring force to velocity to return content to scroller bounds.
protected applyOverrunSpringForces ( ) : void
return void

applyVelocity() protected method

protected applyVelocity ( ) : void
return void

calculate1DSpringForce() protected method

protected calculate1DSpringForce ( float offsetVector ) : float
offsetVector float
return float

calculateOverrunMagnitude() protected method

protected calculateOverrunMagnitude ( ) : float
return float

Property Details

ContainerBottomBound public property

public Transform ContainerBottomBound
return Transform

ContainerTopBound public property

public Transform ContainerTopBound
return Transform

ContentBottomBound public property

public Transform ContentBottomBound
return Transform

ContentTopBound public property

public Transform ContentTopBound
return Transform

ContentTransform public property

public Transform ContentTransform
return Transform

Drag public property

public float Drag
return float

InteractionScale public property

public float InteractionScale
return float

SnapSpringForce public property

public float SnapSpringForce
return float

m_contentPivot protected property

protected Vector3 m_contentPivot
return Vector3

m_dampingForce protected property

protected float m_dampingForce
return float

m_velocity protected property

protected float m_velocity
return float