collisions

This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.

View previous topic View next topic Go down

collisions

Post  remus_leonte on Fri Oct 23, 2009 11: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

View user profile

Back to top Go down

View previous topic View next topic Back to top


This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.
Permissions of this forum:
You cannot reply to topics in this forum