mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 02:50:32 +00:00
(DRAFT) Shooter Example, initial push. B
This commit is contained in:
parent
00a1d1f3d5
commit
6f02d27976
@ -182,7 +182,6 @@ public virtual bool RaycastCheck(
|
|||||||
|
|
||||||
// raycast
|
// raycast
|
||||||
Vector3 direction = hitPoint - originPoint;
|
Vector3 direction = hitPoint - originPoint;
|
||||||
float maxDistance = direction.magnitude * 2;
|
|
||||||
bool result = Physics.Raycast(originPoint, direction, out hit, maxDistance, layerMask);
|
bool result = Physics.Raycast(originPoint, direction, out hit, maxDistance, layerMask);
|
||||||
|
|
||||||
// cleanup
|
// cleanup
|
||||||
|
Loading…
Reference in New Issue
Block a user