Search found 10 matches

by vrepUser1
22 Feb 2019, 18:40
Forum: General questions
Topic: simAddForce confused
Replies: 5
Views: 922

Re: simAddForce confused

I tried the way like you suggested, but its a lot of code I would generate in dynCallback. Anyway its working for this: function sysCall_dynCallback(inData) .... sim.addForce(h[i], tb, fb) end But as far I try to reset the accumulated force with only the resetforce flag or together with both flags: ...
by vrepUser1
21 Feb 2019, 21:11
Forum: General questions
Topic: simAddForce confused
Replies: 5
Views: 922

Re: simAddForce confused

Thank you very much. It is much clearer now. One question arises now. I will call sim.addForce on a body B in my c++ plugin. How I reset the accumulated force within the c++ plugin?

Note: I'm using version 3.5.0 rev.4.

Best,
vrepuser1
by vrepUser1
20 Feb 2019, 23:00
Forum: General questions
Topic: simAddForce confused
Replies: 5
Views: 922

simAddForce confused

Hello, I'm a bit confused about simAddForce. In the description added forces are cumulative (within a timestep??) and the force will be reset to zero after one dynamic timestep by default or I have to set the handleflag? How it works when I want to add a force within each dynamic timestep in my c++ ...
by vrepUser1
26 Aug 2018, 17:53
Forum: General questions
Topic: Qt based UI in plugin c++
Replies: 3
Views: 732

Re: Qt based UI in plugin c++

Hi fferri,
thank you for the hints. So you mean I should only call Qt functions during the callback-message which are marked as "(called from the UI thread)", like "sim_message_eventcallback_guipass (called from the UI thread)"?

Best,
vrepUser1
by vrepUser1
23 Aug 2018, 21:56
Forum: General questions
Topic: Qt based UI in plugin c++
Replies: 3
Views: 732

Qt based UI in plugin c++

Hi,
I didnt find out how to use the functions of the Qt based plugin (v_repExtCustomUI) in my own plugin in c++. What I'm missing?

Best
vrepUser1
by vrepUser1
20 Aug 2018, 20:04
Forum: General questions
Topic: Callback for selecting DrawingObjects
Replies: 3
Views: 676

Re: Callback for selecting DrawingObjects

Hi fferri, I'm representing some entities through line drawing objects and this entities have some specific attributes which I want to display through a cutom gui when you click on it. I found that the "sim_message_eventcallback_proxsensorselectup" is doing what I requested for. But yes I get a '-1'...
by vrepUser1
19 Aug 2018, 18:40
Forum: General questions
Topic: Callback for selecting DrawingObjects
Replies: 3
Views: 676

Callback for selecting DrawingObjects

Hello,
is there a callback which will be executed in a plugin, when I select a DrawingObject in a scene?

And if not, its possible with eventcallback "key_pressed"? And/Or with a ray which hits the drawingobject to identify it?

Best,
vrepUser1
by vrepUser1
15 Aug 2018, 14:22
Forum: General questions
Topic: DynCallback as Eventmessage in Plugin
Replies: 1
Views: 491

DynCallback as Eventmessage in Plugin

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 calcula...
by vrepUser1
24 Oct 2016, 18:20
Forum: General questions
Topic: Rope Simulation
Replies: 3
Views: 2066

Re: Rope Simulation

Hi,
ok thank you! I will try this.

Sorry for the uploaded file. I just uploaded to the first hoster in google results. I updated it to another hoster. I think it is more reliable.
http://www.megafileupload.com/gbfd/SimpleRope.ttm
by vrepUser1
22 Oct 2016, 17:59
Forum: General questions
Topic: Rope Simulation
Replies: 3
Views: 2066

Rope Simulation

Hello, I created a dynamic model of a simple rope. I used spherical joints to model the behaviour of the rope. The upper red sphere is static and the rest is dynamic. http://www.megafileupload.com/gbfd/SimpleRope.ttm http://fs5.directupload.net/images/161022/temp/sksao9pp.png Three questions: 1. Wha...