sc_world_control_v1.raycast_filtered
Zone-local ray; direction normalized, positive finite distance clamped to 20000m. At most 32 unique nonzero current own IDs, copied for call only; foreign/relinquished ID FAILED, malformed input BAD_ARG. Adequately-sized hit zeroed on failure, unknown tail untouched; success position/distance only, entity/normal/flags zero. NULL/short hit rejected before zeroing. Capability game.world.raycast_filtered remains OFF.
Signature
Section titled “Signature”sco_result (*)(sco_plugin *, uint64_t, const double *, const double *, double, const uint64_t *, uint32_t, sc_world_hit *)Service and availability
Section titled “Service and availability”| Property | Value |
|---|---|
| Symbol | sc_world_control_v1.raycast_filtered |
| Record ID | sc-world-control-v1-raycast-filtered |
| Service | game.world.control |
| Table | sc_world_control_v1 |
| Version macro | SC_WORLD_CONTROL_VERSION_1_0 |
| Packed table version | 65536 |
| Since / availability | size >= 16; 1.0 |
| Complete member extent (x64 bytes) | 16 |
| Table size (x64 bytes) | 40 |
Parameters and buffers
Section titled “Parameters and buffers”sco_result (*raycast_filtered)(sco_plugin* self, uint64_t zone_id, const double from[3], const double dir[3], double max_dist, const uint64_t* skip_ids, uint32_t skip_count, sc_world_hit* out_hit);
Zone-local ray; direction normalized, positive finite distance clamped to 20000m. At most 32 unique nonzero current own IDs, copied for call only; foreign/relinquished ID FAILED, malformed input BAD_ARG. Adequately-sized hit zeroed on failure, unknown tail untouched; success position/distance only, entity/normal/flags zero. NULL/short hit rejected before zeroing. Capability game.world.raycast_filtered remains OFF.
Results and failures
Section titled “Results and failures”BAD_ARG invalid owner/input; WRONG_THREAD; UNAVAILABLE absent verified adapter or restart-required; FAILED foreign owner/provider refusal; NOT_FOUND stale lease/no hit. See method-specific output contract.
Absent capability
Section titled “Absent capability”Absent service: query_service NOT_FOUND; present disabled operation: UNAVAILABLE.
Ownership
Section titled “Ownership”Live owner required; call-only copied inputs, host-session borrowed table. No allocation or engine pointers cross boundary. Camera lease exclusive; no steal.
Thread affinity
Section titled “Thread affinity”Game thread only; WRONG_THREAD without provider access.
Callback context
Section titled “Callback context”No plugin callbacks. Host-only provider callbacks synchronous, bounded, nonthrowing.
Reentrancy
Section titled “Reentrancy”Recursive calls refused with FAILED; no waits or async work.
Cleanup and cancellation
Section titled “Cleanup and cancellation”No persisted ray filter. Ordinary owner unload/service stop restores camera before dropping lease; failure retains backing state and requires restart. Fault-retained native provider cleanup not promised.
Language mappings
Section titled “Language mappings”Status labels are copied verbatim from the catalogue: direct is native access; typed-wrapper is wrapper-backed; restricted is a subset/adaptation; unsupported means no supported route is established. No status implies universal safety.
| Language | Catalogue status | Source evidence / wrapper tokens |
|---|---|---|
| c | direct | include/sc_world_control.h(*raycast_filtered) |
| cpp | typed-wrapper | include/scosdk/game/world_control.hppt_->raycast_filtered( |
| csharp | unsupported | docs/design/world-control.mdC# and sandboxed Lua: unsupported |
| lua | unsupported | docs/design/world-control.mdC# and sandboxed Lua: unsupported |
Examples
Section titled “Examples”None identified in the catalogue; this is not proof none can exist.
ABI pins prove layout, not semantic behavior or a live game session.