midspace / midspace/Space-Engineers-Admin-script-mod
Replace RayCastBlocks calls
Open
Nobody has claimed this yet.
enhancement
- Dominant language
- C#
- Stars
- 43
- Forks
- 12
- PR merge metrics
- No merged PRs in 30d
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;
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start in midspace admin helper/Data/Scripts/midspace.adminscripts/Support.cs at line 105, then search the repository for other RayCastBlocks calls. Replace the calls with the suggested MyAPIGateway.Physics.CastRay usage, and verify that the old calls are no longer present.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- game-dev
- Issue type
- Refactor
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 35/100