is there a better way ?
currently I'm using objectraycast and objectspherecast but because the level is very curved it sometimes gives me bad results.
if I could curve the ray cast it would be awesome but I'm afraid this cannot be done without testing for multiple raycasts each time a little bit , the problem with that is that I'm trying to keep the cpu usage at very low power ...
I wonder if there is a collision checking without using the 3d physics commands since they are too slow
if i'll add a physics attribute to each block in my game the game will run slow since there are hundreds
now I could try 2 things
one checking 3d distance between my player and the blocks
or checking to see positions using if x< x1+width/2 and x > x1-width/2 etc..
but on both cases I will have to irritate trough the whole array and I don't want that
objectraycast gives me the correct id of the given hit and I keep the blocks at 1 to 200 id's
CreateObjectBox(myId,width,height,depth) well not exactly like that but very similar
so I can check really quick the collision.
but I wonder if there is a command such as
ObjectHit(playerId,0) // 0 for all objects
or
ObjectCollision(playerId,0) // 0 for all objects
thank you for your time, haliop.