Battle Talent  V11
Public Member Functions | Public Attributes | Protected Member Functions | List of all members
CrossLink.FlyObjectX Class Reference

Inherits CrossLink.FlyObject.

Public Member Functions

override void OnSpawn (InteractBase ow, Vector3 dir, float vel=-1)
 
override void FlyStart (Vector3 vel)
 
override void OnDelay (float t, float s)
 Set delayToAcc time, each frame OnDelay will be call after FlyStart function. More...
 
override void OnDelayEnd ()
 Call at the end of the delay timer. More...
 
override void FlyStop ()
 
override void OnFinish ()
 
override void OnTimeOut ()
 
override void OnCollision (Collision collision, PhysicsUnit pu)
 
override void OnCollisionWithHitScan (Rigidbody rb, Collider col, Vector3 point, Vector3 normal, Vector3 relaVel)
 
override void OnCollisionWithPlayer (Collision collision, InteractCharacter player)
 
override void OnCollisionWithPlayerHand (Collision collision, InteractHand hand)
 
override void OnCollisionWithRole (FullCharacterControl fc, RagdollMuscle mu, Rigidbody rb, Collider col, Vector3 point, Vector3 normal, Vector3 relaVel)
 Collision with role. More...
 
override void OnTrigger (PhysicsUnit pu, Collider collider)
 
override void OnTriggerWithPlayerHand (Collider collider, InteractHand hand)
 
override void OnTriggerWithStaticScene (Collider collider)
 
override void OnTriggerWithPlayer (PhysicsUnit pu, Collider collider)
 
override void OnTriggerWithRole (FullCharacterControl fc, Collider collider)
 

Public Attributes

LuaScript script
 
LuaFunction luaOnSpawn
 
LuaFunction luaFlyStart
 
LuaFunction luaOnDelay
 
LuaFunction luaOnDelayEnd
 
LuaFunction luaFlyStop
 
LuaFunction luaOnFinish
 
LuaFunction luaOnTimeOut
 
LuaFunction luaResetState
 
LuaFunction luaOnCollision
 
LuaFunction luaOnCollisionUpdate
 
LuaFunction luaOnCollisionWithHitScan
 
LuaFunction luaOnCollisionWithPlayer
 
LuaFunction luaOnCollisionWithPlayerHand
 
LuaFunction luaOnCollisionWithRole
 
LuaFunction luaOnCollisionWithScene
 
LuaFunction luaOnTrigger
 
LuaFunction luaOnTriggerWithStaticScene
 
LuaFunction luaOnTriggerWithPlayerHand
 
LuaFunction luaOnTriggerWithPlayer
 
LuaFunction luaOnTriggerWithRole
 

Protected Member Functions

override void ResetState ()
 
override void OnCollisionUpdate (Rigidbody rb, Collider col, Vector3 point, Vector3 normal, Vector3 relaVel)
 
override void OnCollisionWithScene (Collision collision)
 

Additional Inherited Members

Member Function Documentation

◆ OnCollisionWithRole()

override void CrossLink.FlyObjectX.OnCollisionWithRole ( FullCharacterControl  fc,
RagdollMuscle  mu,
Rigidbody  rb,
Collider  col,
Vector3  point,
Vector3  normal,
Vector3  relaVel 
)
virtual

Collision with role.

Parameters
fcFullCharacterControl of the role we hit.
muthe RagdollMuscle we hit.
rbThe Rigidbody of the object hit the role.
colThe Collider of the object hit the role.
pointThe impact point in world space.
normalThe normal of the surface the collider hit.
relaVelThe velocity of the object hit the role.

Reimplemented from CrossLink.FlyObject.

◆ OnDelay()

override void CrossLink.FlyObjectX.OnDelay ( float  t,
float  s 
)
virtual

Set delayToAcc time, each frame OnDelay will be call after FlyStart function.

Parameters
t
s

Reimplemented from CrossLink.FlyObject.

◆ OnDelayEnd()

override void CrossLink.FlyObjectX.OnDelayEnd ( )
virtual

Call at the end of the delay timer.

Reimplemented from CrossLink.FlyObject.