Turok
 
Loading...
Searching...
No Matches
kCModel Class Reference

The kCModel(CModel) global stores collision results when certain actor methods are called. Those methods are as follows: GetSectorIndexAtLocation const bool CanSee(kActor@, const uint = 0) MoveToPosition SpawnProjectile bool CheckPosition(const kVec3 &in) More...

Public Member Functions

kVec3InterceptVector ()
 Returns the vector that intersected the collided geometry.
 
kVec3ContactNormal ()
 Returns the normalized vector of the collided surface.
 
const float & Fraction ()
 returns the 0.0 - 1.0 range of the point of intersection from start to end trace. (If fraction is == 1.0 then no intersection occured.)
 
const uint ClipResult ()
 specifies the type of intersection (flags)
 
kActor ContactActor ()
 handle pointer to actor that was collided (null if none was collided)
 
kVec3MoveDirection ()
 Movement vector of the object.
 

Detailed Description

The kCModel(CModel) global stores collision results when certain actor methods are called. Those methods are as follows: GetSectorIndexAtLocation const bool CanSee(kActor@, const uint = 0) MoveToPosition SpawnProjectile bool CheckPosition(const kVec3 &in)

Definition at line 1352 of file t1_scriptAPI.cpp.

Member Function Documentation

◆ ClipResult()

const uint kCModel::ClipResult ( )

specifies the type of intersection (flags)

◆ ContactActor()

kActor kCModel::ContactActor ( )

handle pointer to actor that was collided (null if none was collided)

◆ ContactNormal()

kVec3 & kCModel::ContactNormal ( )

Returns the normalized vector of the collided surface.

◆ Fraction()

const float & kCModel::Fraction ( )

returns the 0.0 - 1.0 range of the point of intersection from start to end trace. (If fraction is == 1.0 then no intersection occured.)

◆ InterceptVector()

kVec3 & kCModel::InterceptVector ( )

Returns the vector that intersected the collided geometry.

◆ MoveDirection()

kVec3 & kCModel::MoveDirection ( )

Movement vector of the object.