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; }
public void Interact(BoidEntity boid) { Debug.Log(boid); }