C# Class Repulsor, UnderworldExporter

Gravity modifier that repulses Objects affected by gravity that enter it's radius
Inheritance: Attractor
显示文件 Open project: hankmorgan/UnderworldExporter Class Usage Examples

Public Properties

Property Type Description
EndPos Vector3
PlayerInside bool
PlayerStillInside bool
RepulsorOn bool
StartPos Vector3
TargetHeight float
TargetPos Vector3
TravelSpeed float
index float
play Collider

Public Methods

Method Description
Activate ( ) : void
OnTriggerEnter ( Collider other ) : void
OnTriggerExit ( Collider other ) : void
Start ( ) : void
StartMove ( ) : void
Update ( ) : void

Private Methods

Method Description
CalcTargetZ ( ) : void
MovePlayer ( GameObject player, Vector3 dist, float traveltime ) : IEnumerator

Method Details

Activate() public method

public Activate ( ) : void
return void

OnTriggerEnter() public method

public OnTriggerEnter ( Collider other ) : void
other Collider
return void

OnTriggerExit() public method

public OnTriggerExit ( Collider other ) : void
other Collider
return void

Start() public method

public Start ( ) : void
return void

StartMove() public method

public StartMove ( ) : void
return void

Update() public method

public Update ( ) : void
return void

Property Details

EndPos public_oe property

public Vector3 EndPos
return Vector3

PlayerInside public_oe property

public bool PlayerInside
return bool

PlayerStillInside public_oe property

public bool PlayerStillInside
return bool

RepulsorOn public_oe property

public bool RepulsorOn
return bool

StartPos public_oe property

public Vector3 StartPos
return Vector3

TargetHeight public_oe property

public float TargetHeight
return float

TargetPos public_oe property

public Vector3 TargetPos
return Vector3

TravelSpeed public_oe property

public float TravelSpeed
return float

index public_oe property

public float index
return float

play public_oe property

public Collider play
return Collider