Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * What is the best way to project a cone forward?
- * And check if something is inside that cone ahead of the player?
- */
- if (Vector3.Angle(transform.forward, target.transform.position - transform.position) < coneHalfAngle) {
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement