Physics

Hi,
I’m working on an app which is similar to fruit ninja and I’m stuck somewhere near when object is rotating on the screen. I’m displaying 5 object at a time and when my object get overlap and I slash that object then the error occured(getLinearVelocity(a nil value)) and after that my code is not working. Instead of this my code is working well.
Any help, reply asap?

Thanks,
[import]uid: 75428 topic_id: 23339 reply_id: 323339[/import]

Can’t really tell from your description and the lack of sample code but:
Do your objects bounce off each other?
Are you handling collisions? Do not try to remove objects inside collision handlers.
Are you removing the correct object or trying to get velocity for a removed object? [import]uid: 8271 topic_id: 23339 reply_id: 93479[/import]

Thanks for suggestion.
I got me error and fixed that. [import]uid: 75428 topic_id: 23339 reply_id: 93508[/import]