Riferimento API di nanos world Documentazione italiana non ufficiale
Documentazione ufficiale
Funzione statica Client Moderato

Trace.CapsuleMulti

Trace a capsule against the world using object types and return overlapping hits and then first blocking hit<br/><br/>Note: The Trace will collide with the ObjectType (in the Collision Settings), even if the channel is ignored below.<br/><br/>Results are sorted, so a blocking hit (if found) will be the last element of the array<br/><br/>Only the single closest blocking result will be generated, no tests will be done after that

Non ancora tradotto

Sintassi

Lua
Trace.CapsuleMulti(start_location, end_location, radius, half_height, collision_channel = WorldStatic, trace_mode = 0, ignored_actors = {})

Parametri

Nome Tipo Predefinito Descrizione
start_location Vector Start location of the capsule
end_location Vector End location of the capsule
radius float Radius of the capsule to sweep
half_height float Distance from center of capsule to tip of hemisphere endcap.
collision_channel facoltativo CollisionChannel|integer WorldStatic Supports several channels separating by <code>|</code> (using bit-wise operations)
trace_mode facoltativo TraceMode|integer 0 Trace Mode, pass all parameters separating by <code>|</code> (using bit-wise operations)<br/><br/>You need to explicitly pass the modes to return the values you want
ignored_actors facoltativo Actor[] {} Array of actors to ignore during the trace

Valore restituito

  • table[]
    Campi della tabella