Search found 4 matches

by yakir
Sun Jul 14, 2019 7:25 am
Forum: General Bullet Physics Support and Feedback
Topic: Change default GUI camera view
Replies: 2
Views: 3605

Re: Change default GUI camera view

Hi , In the examples there is the following function void resetCamera() { float dist = 120; float pitch = -35; float yaw = 52; float targetPos[3] = {0, 10.46, 0}; m_guiHelper->resetCamera(dist, yaw, pitch, targetPos[0], targetPos[1], targetPos[2]); } Which control the camera view you can change the ...
by yakir
Tue Jul 09, 2019 7:36 am
Forum: General Bullet Physics Support and Feedback
Topic: Execute direct kinematics with btHingeConstraint
Replies: 4
Views: 3805

Re: Execute direct kinematics with btHingeConstraint

Thanks for the explanation. The code : anchorPivot = positionSpinner - positionAnchor; pivotSpinner = btVector3(0.0, 0.0, 0.0); axisAnchor = btVector(0.0, 1.0, 0.0); axisSpinner = btVector(0.0, 1.0, 0.0); Means that the spinner is rotating around its center of mass. In my case the rotation is around...
by yakir
Tue Jul 09, 2019 3:56 am
Forum: General Bullet Physics Support and Feedback
Topic: Execute direct kinematics with btHingeConstraint
Replies: 4
Views: 3805

Re: Execute direct kinematics with btHingeConstraint

Thanks for the answer and the explanation. I have added the code in the attachment. I did a little change and it seems now when I am applying force it is rotating correctly. I have multiply by 2 the last coordinate of the point so instead (0,0,100) it is (0,0,200). The only problem I see now that is...
by yakir
Fri Jul 05, 2019 6:44 am
Forum: General Bullet Physics Support and Feedback
Topic: Execute direct kinematics with btHingeConstraint
Replies: 4
Views: 3805

Execute direct kinematics with btHingeConstraint

Hello Experts, I am having trouble simulate direct kinematics with the hinge constraints with my data. I have two cubes which their center of mass is (50,50,50) and (50,50,150) the size of each edge is 100 . In addition I want to define a hinge constraints on (0,0,100) with the Y axis. All the coord...