Correct way to remove SIO2sensor?
3 posters
Correct way to remove SIO2sensor?
Hi, I've set up a distance sensor with sio2SensorInitDistance() and "rendering" it using the SIO2_EVALUATE_SENSOR flag in my sio2ResourceRender() call. I trigger the sensor but having trouble removing or disabling the sensor. A immediate call to sio2SensorFree() in the sensor callback function isn't thread safe it seems, do I have to set up a queue to remove sensors?
Thanks,
--yarri
Thanks,
--yarri
yarri- Posts : 81
Join date : 2009-04-10
Re: Correct way to remove SIO2sensor?
sio2interactive wrote:Simply use a tag and remove it after calling sio2PhysicRender
I tried it many times,but I didn't remove it safe?
I do not Understand what you mean,beacuse my poor english.
Could you said that specific point? thank you very much.
LuisLee- Posts : 85
Join date : 2009-04-26
Age : 37
Re: Correct way to remove SIO2sensor?
Hi, it means either set a list of all sensors to be removed (or "tag" them by setting the userData pointer and iterate over all sensors to remove the "tagged" ones) and remove them in the physics thread. Works great.
--yarri
--yarri
yarri- Posts : 81
Join date : 2009-04-10
Re: Correct way to remove SIO2sensor?
yarri wrote:Hi, it means either set a list of all sensors to be removed (or "tag" them by setting the userData pointer and iterate over all sensors to remove the "tagged" ones) and remove them in the physics thread. Works great.
--yarri
OK!thank you very much! I got it!
LuisLee- Posts : 85
Join date : 2009-04-26
Age : 37
Similar topics
» Add/remove object
» Request to Remove Blender Exports Options
» What is the Correct Way to Delete an SIO2Object?
» how to correct sio2widget area using portrait ??
» Request to Remove Blender Exports Options
» What is the Correct Way to Delete an SIO2Object?
» how to correct sio2widget area using portrait ??
Permissions in this forum:
You cannot reply to topics in this forum
|
|