Turok EX Modding Guide

Scripts kCModel

used for passing collision results to ScriptObject::OnCollide()

there's also a global kCModel, CModel, which stores the results of the following functions:

Methods

kVec3& InterceptVector()

point of impact

kVec3& ContactNormal()

collided surface normal

const float& Fraction()

fraction from 0.0 to 1.0 between start and end points where collision occured

1.0 means no collision occured

uint ClipResult()

bit field describing the collision:

kActor@ ContactActor()

actor that was collided with, if any