NoobsWeStand
Member
So i am using this dll for 3D collision: http://gmc.yoyogames.com/index.php?showtopic=632606
I am able to raycast against the "world system" just fine, but when I try to do a raycast with an "collision object" it does not work. I re-read the thread over and over, and it seems like it should work just fine
I can't find any contact information for Venomous, otherwise I would have asked him
I switched over from the P3DC dll because the one that Venomous made was so much faster.
Here is some code
Checking the collision:
Creating the collision object
I am able to raycast against the "world system" just fine, but when I try to do a raycast with an "collision object" it does not work. I re-read the thread over and over, and it seems like it should work just fine
I can't find any contact information for Venomous, otherwise I would have asked him
I switched over from the P3DC dll because the one that Venomous made was so much faster.
Here is some code
Checking the collision:
Code:
//if(c_raycast_world(x, y, z, x+xmot, y+ymot, z-5-zspeed*dt, 1)){
if(c_raycast_object(colOBJ, x, y, z, x+xmot, y+ymot, z-5-zspeed*dt, 1)){
//collision check--- never gets triggered
}
Creating the collision object
Code:
shape=c_shape_create();
c_shape_begin_trimesh();
c_shape_load_trimesh("terrain\terrain.mod");
colOBJ= c_object_create(shape, -1, 1);
c_shape_end_trimesh(shape);
//c_world_add_object(colOBJ);
c_shape_destroy(shape)
Last edited: