Table of Contents

Condition and timing of event function calls

Update

update()

Remarks

updateAll()

Trigger/Collision and Enter/Exit

onTriggerEnter(item, hit)

Remarks

onTriggerExit(item, hit)

Remarks

onCollisionEnter(item, hit)

Remarks

onCollisionExit(item, hit)

Remarks

Grab and Use

This means the following states could occur:

To counter this, Virtual Cast judges the conditions for Grab and Use events as shown below.

onGrab(target)

Remarks

onUngrab(target)

Remarks

onUse(use)

onUnuse(use)

Remarks