How to change the angle of proximity sensor in kilobot device from child script?

Typically: "How do I... ", "How can I... " questions
Post Reply
Yehia Soliman
Posts: 11
Joined: 21 Jul 2019, 12:33

How to change the angle of proximity sensor in kilobot device from child script?

Post by Yehia Soliman »

Hey
I am using kilobot robots in project and I want to reset the angle of proximity sensor from inside the child script while the simulation is running use writing Lua code not from Scene Object Properties. please help me.


coppelia
Site Admin
Posts: 7838
Joined: 14 Dec 2012, 00:25

Re: How to change the angle of proximity sensor in kilobot device from child script?

Post by coppelia »

Maybe you can also programmatically create a proximity sensor as you need, with sim.createProximitySensor

Cheers

Yehia Soliman
Posts: 11
Joined: 21 Jul 2019, 12:33

Re: How to change the angle of proximity sensor in kilobot device from child script?

Post by Yehia Soliman »

thank you fferri & coppelia.

Post Reply