mirror of
https://github.com/Ragora/T2-CPP.git
synced 2026-03-27 16:19:12 +00:00
Adjusted the projectile radius for testing
Set the radius to 40.0 for further tuning either in TorqueScript or C++.
This commit is contained in:
parent
d0936c3c07
commit
ebe6649da7
2 changed files with 11 additions and 114 deletions
|
|
@ -100,7 +100,7 @@ void collide(unsigned int simgroup){
|
|||
DX::MatrixF mat2=DX::MatrixF(sobj3.objtoworld);
|
||||
DX::Point3F test2;
|
||||
mat2.getColumn(3,&test2);
|
||||
if (DX::pointdistance(test,test2)>3) {
|
||||
if (DX::pointdistance(test,test2)<40.0) {
|
||||
char evalstring[1024]="";
|
||||
sprintf (evalstring,"ProjCollisionCallback(%d,%d);",sobj2.identifier,sobj3.identifier);
|
||||
Con::eval(evalstring, false, NULL);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue