thank you very much for your answer Mr Bill!!!
well I did was add a child to the camera in
like as you recommended a sphere as a node
with opacity 0 and transparent
camSphere = [CC3SphereNode nodeWithName:@"CameraSphere"];
[camSphere populateAsSphereWithRadius:1.0f andTessellation:CC3TessellationMake(32, 32)];
camSphere.uniformScale = 500;
camSphere.location = cc3v(cam.location.x+50,cam.location.y-250,cam.location.z+50);
camSphere.uniformScale = 100.0f;
camSphere.ambientColor = kCCC4FBlackTransparent;
camSphere.opacity = 0;
camSphere.touchEnabled = NO;
and evidently in
if ([camSphere doesIntersectNode:_ground])
LogInfo(@"BANG! %@ hit %@", camSphere, _ground);
it tells me that the volume of the sphere if it collides with the floor,
so how I can stop the movement from the camera when collided with the ground?
and does not cross the floor or backward or maintain a certain distance? it can be with the ground or any other node
Thanks a lot!!!