Skip to main content

[NodeMod Core]

/ .. / EnhancedTraceResult

Interface: EnhancedTraceResult

Defined in: src/enhanced/trace.ts:16

Enhanced trace result with additional computed properties and convenience flags.

Extends

Properties

distance?

optional distance: number

Defined in: src/enhanced/trace.ts:18

Distance traveled before hitting something

hitPoint?

optional hitPoint: number[]

Defined in: src/enhanced/trace.ts:20

Exact 3D coordinates where the trace hit

didHit

didHit: boolean

Defined in: src/enhanced/trace.ts:22

Whether the trace hit something before reaching the end

hitSky

hitSky: boolean

Defined in: src/enhanced/trace.ts:24

Whether the trace hit the sky

hitWater

hitWater: boolean

Defined in: src/enhanced/trace.ts:26

Whether the trace hit water

hitEntity?

optional hitEntity: null | Entity

Defined in: src/enhanced/trace.ts:28

Entity that was hit (if any)

hitSurface

hitSurface: boolean

Defined in: src/enhanced/trace.ts:30

Whether the trace hit a solid surface

fraction

fraction: number

Defined in: types/structures.d.ts:1098

v8::String::NewFromUtf8(isolate, "fraction").ToLocalChecked(), v8::Number::New(isolate, trace->flFraction))

Inherited from

TraceResult.fraction

planeDist

planeDist: number

Defined in: types/structures.d.ts:1101

v8::String::NewFromUtf8(isolate, "planeDist").ToLocalChecked(), v8::Number::New(isolate, trace->flPlaneDist))

Inherited from

TraceResult.planeDist

endPos

endPos: unknown

Defined in: types/structures.d.ts:1104

v8::String::NewFromUtf8(isolate, "endPos").ToLocalChecked(), endPos)

Inherited from

TraceResult.endPos

planeNormal

planeNormal: unknown

Defined in: types/structures.d.ts:1107

v8::String::NewFromUtf8(isolate, "planeNormal").ToLocalChecked(), planeNormal)

Inherited from

TraceResult.planeNormal

hitGroup

hitGroup: unknown

Defined in: types/structures.d.ts:1110

v8::String::NewFromUtf8(isolate, "hitGroup").ToLocalChecked(), v8::Integer::New(isolate, trace->iHitgroup))

Inherited from

TraceResult.hitGroup

allSolid

allSolid: boolean

Defined in: types/structures.d.ts:1113

v8::String::NewFromUtf8(isolate, "allSolid").ToLocalChecked(), v8::Boolean::New(isolate, trace->fAllSolid))

Inherited from

TraceResult.allSolid

startSolid

startSolid: boolean

Defined in: types/structures.d.ts:1116

v8::String::NewFromUtf8(isolate, "startSolid").ToLocalChecked(), v8::Boolean::New(isolate, trace->fStartSolid))

Inherited from

TraceResult.startSolid

inOpen

inOpen: boolean

Defined in: types/structures.d.ts:1119

v8::String::NewFromUtf8(isolate, "inOpen").ToLocalChecked(), v8::Boolean::New(isolate, trace->fInOpen))

Inherited from

TraceResult.inOpen

inWater

inWater: boolean

Defined in: types/structures.d.ts:1122

v8::String::NewFromUtf8(isolate, "inWater").ToLocalChecked(), v8::Boolean::New(isolate, trace->fInWater))

Inherited from

TraceResult.inWater

hit

hit: null

Defined in: types/structures.d.ts:1125

v8::String::NewFromUtf8(isolate, "hit").ToLocalChecked(), v8::Null(isolate))

Inherited from

TraceResult.hit