collisions
collisions
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
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
Permissions in this forum:
You cannot reply to topics in this forum