classHChor 03

|

HFloatProperty* HChor::GetRigidDrag  ) 
 

HIntProperty* HChor::GetRigidSubSamples  ) 
 

Time HChor::GetTime  ) 
 

HTimeProperty* HChor::GetTotalTime  ) 
 

BOOL HChor::Intersect Vector p,
Vector d,
Vector hitp,
Vector hitn,
float  maxdist,
float  flatness
 

this function sends a ray into the scene and returns the first intersection/hit point and normal vector of the hit surface

This function will shoot a ray in a scene and return TRUE if it hits an object, and FALSE if no object is hit. Pass in the point you are shooting from, the direction to shoot the ray, an address for to store the point that it hits, an address to store the normal of the surface that it hits, and a distance to shoot the ray. This function is useful for placing objects on another model's surface, and to determine lighting.

Parameters:
p  - the vector representing to point to shoot the ray from.
d  - the vector representing the direction to shoot the ray.
hitp  - if the ray hits an object, the vector representing the point it hit is returned here.
hitn  - if the ray hits an object, the vector representing the normal of the surface it hit is returned here.
maxdist  - the distance to shoot the ray.
flatness  - a flatness tolerance. This tolerance adjust how fine the patches are subdivided when they are interacted. The default value is 0.16. You can lower this number to get the desired precision.
To get an intersection at a time other than 0 you will have to use the function HChor::SetTime() followed by a HChor::CreateFrame();

Example:

chor->SetTime(currentTime);
chor->CreateFrame();
chor->Intersect(pos, dir, hitp, hitn, depth, flatness);
Note:
The return values of this call are sensitive to your viewport information.
See also:
Marcel Bricman's notes about this function.

BOOL HChor::Intersect Vector p,
Vector d,
Vector hitp,
Vector hitn,
float  maxdist
 

Old for backward compatibility. flatness = 0.160.

Same as the other Intersect function except that there is no flatness parameter.

static HChor* HChor::New  )  [static]
 

void HChor::SetTime Time  time  ) 
 

void HChor::SetTimeWithSound Time  time  ) 
 

The documentation for this class was generated from the following files:

  • C:/Program Files/Hash Inc/AM120SDK/Include/SDK/HChor.h
  • C:/Dox/SDK/Comments/Chor.dox

This A:M SDK v12.0 documentation is maintained by Hash Inc. Please address any comments concerning this documentation to AMReports. If you have any information, knowledge, or documentation to share with the A:M developer community, please post them on the Hash SDK forum.

Generated on Thu Oct 27 11:46:54 2005 with doxygen 1.4.5 written by Dimitri van Heesch, © 1997-2001