예제 #1
0
        public Data(BoidEntity entity)
        {
            position.x = entity.transform.position.x;
            position.y = entity.transform.position.y;

            velocity.x = entity.Rigidbody.velocity.x;
            velocity.y = entity.Rigidbody.velocity.y;

            maxSpeed = entity.MaxSpeed;
            maxForce = entity.MaxForce;

            targetPosition.x = entity.Target.position.x;
            targetPosition.y = entity.Target.position.y;

            deltaTime = Time.deltaTime;
        }
예제 #2
0
 public void Interact(BoidEntity boid)
 {
     Debug.Log(boid);
 }