DynCallback as Eventmessage in Plugin

Typically: "How do I... ", "How can I... " questions
Post Reply
vrepUser1
Posts: 10
Joined: 22 Oct 2016, 16:20

DynCallback as Eventmessage in Plugin

Post by vrepUser1 »

Hello,
currently I'm writing a plugin for custom dynamic behaviours. For this purpose I need to go with the stepsize of the physicsengine. Therefore I'm using the nice "dynCallback" in a CustomizationScript which calls at each (dynamic-)step a method in my plugin to make additional dynamical calculations. Works fine so far!

I asked me if there existed a callback for vrepMessage(..) like "sim_message_eventcallback_dynamics"? I only know this messagetype "sim_message_eventcallback_modulehandle", but this will be called only every simulationstep. I could then implement the update-procedure inside the plugin and nobody has to care about to do it externally in the dynCallback.

Best,
vrepUser1

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

Re: DynCallback as Eventmessage in Plugin

Post by coppelia »

Hello,

unfortunately this is not possible. You'll have to call a custom function inside of your plugin, from that customization script.

Cheers

Post Reply