simSet method intricacies

Typically: "How do I... ", "How can I... " questions
Posts: 30
Joined: 18 Oct 2013, 09:02

simSet method intricacies

Postby atoz » 11 May 2017, 19:54


I'd like to know exactly when the simSetObjectPosition, simSetObjectOrientation, simSet.... methods actually perform the update of the position/orientation etc.? I ask this because in my code when I update a position and then immediately after if I check that it has been updated through an if statement or print() it doesn't seem to show an update. However, the update does show up in the next cycle of the loop.

I'm running this in a non-threaded script where the code is executed during the sensing phase. Am I right in saying that these are non-blocking methods which do not guarantee immediate updates? Is there a workaround to getting the update immediately?

This post seems to be experiencing the same problem:

Thanks for your help.

Site Admin
Posts: 5743
Joined: 14 Dec 2012, 00:25

Re: simSet method intricacies

Postby coppelia » 15 May 2017, 15:16


can you post a simplified scene that illustrates the problem? The position is immediately modified. Maybe the object has some other dependencies. Can't tell without seeing it.


Return to “General questions”

Who is online

Users browsing this forum: Baidu [Spider], Bing [Bot], mohtashem and 19 guests