-
Notifications
You must be signed in to change notification settings - Fork 13
Open
Labels
Description
Update calls to RayCastBlocks to use MyAPIGateway.Physics.CastRay.
MyAPIGateway.Physics.CastRay(start, end, out info);
var hitGrid = info?.HitEntity as IMyCubeGrid;
return hitGrid?.GetCubeBlock(hitGrid.WorldToGridInteger(info.Position + headTransform.Forward * 0.01))?.FatBlock as IMyTerminalBlock;
Reactions are currently unavailable