FORUM CLOSED, PLEASE REGISTER AT FORUM.SIO2INTERACTIVE.COM
Would you like to react to this message? Create an account in a few clicks or log in to continue.

collisions

Go down

collisions Empty collisions

Post  remus_leonte Fri Oct 23, 2009 5:11 am

I have this code and the collision sensor is nor evaluated.

void collisonCallback( void *_ptr )
{
NSLog(@"collision");
}

//in templateLoading
sio2SensorInitCollision("mysensor", player, plane, collisonCallback);

//and in templateRender
sio2ResourceRender( gameResource,
sio2->_SIO2window,
gameCamera,
SIO2_RENDER_SOLID_OBJECT | SIO2_RENDER_TRANSPARENT_OBJECT | SIO2_RENDER_ALPHA_TESTED_OBJECT | SIO2_EVALUATE_SENSOR );

the physics in made in blender
player - dinamic-actor
plane - static -actor

Please give me a hint!

tnx

remus_leonte

Posts : 3
Join date : 2009-09-16

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum