The author will probably give me permission to statically link it if I explain it to them.
I have the Newton version and the ColDet version implemented side by side. But ColDet doesn't work. Here I am trying to perform a raycast between point 0 and point 1. The parameters for the raycast method are very confusing. I don't know if the direction is supposed to be normalized or what:
I have the Newton version and the ColDet version implemented side by side. But ColDet doesn't work. Here I am trying to perform a raycast between point 0 and point 1. The parameters for the raycast method are very confusing. I don't know if the direction is supposed to be normalized or what:
Method ColDetRayCast:Int(p0:TVec3,p1:TVec3,position:TVec3,normal:TVec3,radius:Float=0.0,closest=True) Global direction:Float[3] If Not collisionmodel Return direction[0]=p1.x-p0.x direction[1]=p1.y-p0.y direction[2]=p1.z-p0.z Local m#=NormalizeVec3(direction,direction) If collisionmodel.rayCollision:Int(Varptr p0.x,direction,closest,0,m) collisionmodel.getCollisionPoint(Varptr position.x) Notify position.tostring() Return 1 Else Return 0 EndIf EndMethod