Fix raycast mask
This commit is contained in:
parent
75037e5514
commit
72aa771a83
@ -155,7 +155,7 @@ namespace NeonTea.Quakeball.Players {
|
|||||||
|
|
||||||
Vector3 From = CameraRoot.position;
|
Vector3 From = CameraRoot.position;
|
||||||
Vector3 Direction = CameraRoot.forward;
|
Vector3 Direction = CameraRoot.forward;
|
||||||
RaycastHit[] Hits = Physics.RaycastAll(From, Direction, BulletHitLayer);
|
RaycastHit[] Hits = Physics.RaycastAll(From, Direction, 1000f, BulletHitLayer);
|
||||||
foreach (RaycastHit Hit in Hits) {
|
foreach (RaycastHit Hit in Hits) {
|
||||||
Player Player = Hit.rigidbody != null ? Hit.rigidbody.GetComponent<Player>() : null;
|
Player Player = Hit.rigidbody != null ? Hit.rigidbody.GetComponent<Player>() : null;
|
||||||
if (Player == this) {
|
if (Player == this) {
|
||||||
|
Loading…
Reference in New Issue
Block a user