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: 2
Joined: 21 Jul 2019, 12:33

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

Post by Yehia Soliman » 29 Jul 2019, 09:33

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: 7272
Joined: 14 Dec 2012, 00:25

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

Post by coppelia » 29 Jul 2019, 10:20

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

Cheers

Yehia Soliman
Posts: 2
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 » 29 Jul 2019, 11:09

thank you fferri & coppelia.

Post Reply