mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-04-29 16:25:42 +00:00
TSMesh::castRayOpcode method var clarifications/match for .h file
This commit is contained in:
parent
10937d0a4d
commit
b55db9a143
1 changed files with 3 additions and 3 deletions
|
|
@ -1499,14 +1499,14 @@ static Point3F texGenAxis[18] =
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
bool TSMesh::castRayOpcode( const Point3F &s, const Point3F &e, RayInfo *info, TSMaterialList *materials )
|
bool TSMesh::castRayOpcode( const Point3F &start, const Point3F &end, RayInfo *info, TSMaterialList *materials )
|
||||||
{
|
{
|
||||||
Opcode::RayCollider ray;
|
Opcode::RayCollider ray;
|
||||||
Opcode::CollisionFaces cfs;
|
Opcode::CollisionFaces cfs;
|
||||||
|
|
||||||
IceMaths::Point dir( e.x - s.x, e.y - s.y, e.z - s.z );
|
IceMaths::Point dir(end.x - start.x, end.y - start.y, end.z - start.z );
|
||||||
const F32 rayLen = dir.Magnitude();
|
const F32 rayLen = dir.Magnitude();
|
||||||
IceMaths::Ray vec( Point(s.x, s.y, s.z), dir.Normalize() );
|
IceMaths::Ray vec( Point(start.x, start.y, start.z), dir.Normalize() );
|
||||||
|
|
||||||
ray.SetDestination( &cfs);
|
ray.SetDestination( &cfs);
|
||||||
ray.SetFirstContact( false );
|
ray.SetFirstContact( false );
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue