コード例 #1
0
 private void OnTriggerEnter(Collider other)
 {
     if (!other.CompareTag("Gun"))
     {
         return;
     }
     kinematicCalc           = null;
     transform.parent        = other.transform;
     transform.localPosition = initPosition;
 }
コード例 #2
0
 public void Launch(Vector3 acceleration, Vector3 speed)
 {
     kinematicCalc = new KinematicCalc(transform.position,
                                       speed, acceleration
                                       );
 }