moving an object

Typically: "How do I... ", "How can I... " questions
Post Reply
tnkumar
Posts: 1
Joined: 04 Dec 2018, 17:05

moving an object

Post by tnkumar » 07 Dec 2018, 02:46

I want to create a new object (e.g. a sphere) and a UI to specify the new position for the object - x, y and z co-ordinates and then have a button to move the object to the new position. How do I go about doing this in V-REP?

fferri
Posts: 247
Joined: 09 Sep 2013, 19:28

Re: moving an object

Post by fferri » 07 Dec 2018, 09:14

You can use the CustomUI plugin, it allows you to create windows with buttons and other widgets. See scenes/customUI.ttt for an example.

Additionaly, you need to use sim.createPureShape to create a sphere, and sim.setObjectPosition to move it.

Post Reply