C# 클래스 Steer, urban-survivors

상속: MonoBehaviour
파일 보기 프로젝트 열기: exdev/urban-survivors 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
brakingRate float
mass float
maxForce float
maxSpeed float

보호된 프로퍼티들

프로퍼티 타입 설명
controller CharacterController
curSpeed float
smoothedAcceleration Vector3

공개 메소드들

메소드 설명
ApplyBrakingForce ( ) : void
ApplySteeringForce ( Vector3 _force ) : void
BrakeImmediately ( ) : void
CurSpeed ( ) : float
GetSteering_AvoidObstacle ( float _minTimeToCollision, Collider _obstacle ) : Vector3
GetSteering_Flee ( Vector3 _pos ) : Vector3
GetSteering_Flee_LimitByMaxSpeed ( Vector3 _pos ) : Vector3
GetSteering_Flee_MaxForces ( Vector3 _pos ) : Vector3
GetSteering_Seek ( Vector3 _pos ) : Vector3
GetSteering_Seek_LimitByMaxSpeed ( Vector3 _pos ) : Vector3
GetSteering_Seek_MaxForces ( Vector3 _pos ) : Vector3
GetSteering_Wander ( ) : Vector3
IsAhead ( Vector3 _targetPos, float _cosThreshold = 0.707f ) : bool
IsAside ( Vector3 _targetPos, float _cosThreshold = 0.707f ) : bool
IsBehind ( Vector3 _targetPos, float _cosThreshold = -0.707f ) : bool
Velocity ( ) : Vector3

보호된 메소드들

메소드 설명
AdjustOrientation ( Vector3 _newVelocity ) : void
Awake ( ) : void
ShowDebugInfo ( ) : void
Start ( ) : void
Update ( ) : void

비공개 메소드들

메소드 설명
AdjustRawSteeringForce ( Vector3 _force ) : Vector3

메소드 상세

AdjustOrientation() 보호된 메소드

protected AdjustOrientation ( Vector3 _newVelocity ) : void
_newVelocity Vector3
리턴 void

ApplyBrakingForce() 공개 메소드

public ApplyBrakingForce ( ) : void
리턴 void

ApplySteeringForce() 공개 메소드

public ApplySteeringForce ( Vector3 _force ) : void
_force Vector3
리턴 void

Awake() 보호된 메소드

protected Awake ( ) : void
리턴 void

BrakeImmediately() 공개 메소드

public BrakeImmediately ( ) : void
리턴 void

CurSpeed() 공개 메소드

public CurSpeed ( ) : float
리턴 float

GetSteering_AvoidObstacle() 공개 메소드

public GetSteering_AvoidObstacle ( float _minTimeToCollision, Collider _obstacle ) : Vector3
_minTimeToCollision float
_obstacle Collider
리턴 Vector3

GetSteering_Flee() 공개 메소드

public GetSteering_Flee ( Vector3 _pos ) : Vector3
_pos Vector3
리턴 Vector3

GetSteering_Flee_LimitByMaxSpeed() 공개 메소드

public GetSteering_Flee_LimitByMaxSpeed ( Vector3 _pos ) : Vector3
_pos Vector3
리턴 Vector3

GetSteering_Flee_MaxForces() 공개 메소드

public GetSteering_Flee_MaxForces ( Vector3 _pos ) : Vector3
_pos Vector3
리턴 Vector3

GetSteering_Seek() 공개 메소드

public GetSteering_Seek ( Vector3 _pos ) : Vector3
_pos Vector3
리턴 Vector3

GetSteering_Seek_LimitByMaxSpeed() 공개 메소드

public GetSteering_Seek_LimitByMaxSpeed ( Vector3 _pos ) : Vector3
_pos Vector3
리턴 Vector3

GetSteering_Seek_MaxForces() 공개 메소드

public GetSteering_Seek_MaxForces ( Vector3 _pos ) : Vector3
_pos Vector3
리턴 Vector3

GetSteering_Wander() 공개 메소드

public GetSteering_Wander ( ) : Vector3
리턴 Vector3

IsAhead() 공개 메소드

public IsAhead ( Vector3 _targetPos, float _cosThreshold = 0.707f ) : bool
_targetPos Vector3
_cosThreshold float
리턴 bool

IsAside() 공개 메소드

public IsAside ( Vector3 _targetPos, float _cosThreshold = 0.707f ) : bool
_targetPos Vector3
_cosThreshold float
리턴 bool

IsBehind() 공개 메소드

public IsBehind ( Vector3 _targetPos, float _cosThreshold = -0.707f ) : bool
_targetPos Vector3
_cosThreshold float
리턴 bool

ShowDebugInfo() 보호된 메소드

protected ShowDebugInfo ( ) : void
리턴 void

Start() 보호된 메소드

protected Start ( ) : void
리턴 void

Update() 보호된 메소드

protected Update ( ) : void
리턴 void

Velocity() 공개 메소드

public Velocity ( ) : Vector3
리턴 Vector3

프로퍼티 상세

brakingRate 공개적으로 프로퍼티

public float brakingRate
리턴 float

controller 보호되어 있는 프로퍼티

protected CharacterController controller
리턴 CharacterController

curSpeed 보호되어 있는 프로퍼티

protected float curSpeed
리턴 float

mass 공개적으로 프로퍼티

public float mass
리턴 float

maxForce 공개적으로 프로퍼티

public float maxForce
리턴 float

maxSpeed 공개적으로 프로퍼티

public float maxSpeed
리턴 float

smoothedAcceleration 보호되어 있는 프로퍼티

protected Vector3 smoothedAcceleration
리턴 Vector3