In my game, I want run time modification in object body so I want to modify the joint def according to situation. So provide comment for how to modify jointdef run time.

  • 2
    \$\begingroup\$ This is so very vague. You don't tell us what you've tried and it's hard to tell what you even want. \$\endgroup\$ – MichaelHouse May 24 '12 at 14:34
  • \$\begingroup\$ @JohnEye, Why up vote this question? Do you know the reason to upvote? Mouse over the up vote button "This question shows research effort; it is useful and clear" I don't see any of those attributes in this question. \$\endgroup\$ – MichaelHouse May 24 '12 at 16:52
  • \$\begingroup\$ I upvoted because I didn't like your comment and downvote so I wanted to restore some balance of the Force. The question may not show research effort, but it certainly is clear what Siddharth wants to accomplish. Also, he is new here so cut him some slack. Getting brutally downvoted without an answer can only discourage him from contributing in the future. \$\endgroup\$ – JohnEye May 24 '12 at 17:59
  • \$\begingroup\$ @JohnEye Siddharth has been part of GDSE for a few months now, he's been told about questions like this in the past. There's nothing "brutal" about the down vote. You're welcome to view Siddharth's profile, you can see that he's asked 15 questions, only one of which is not at 0 or negative votes. His down votes far outweigh his up votes. The exact purpose of the down vote is to discourage this kind of contribution. \$\endgroup\$ – MichaelHouse May 24 '12 at 20:34
  • \$\begingroup\$ I see. Still, I think the question is valid and does not deserve so many downvotes. \$\endgroup\$ – JohnEye May 25 '12 at 1:16

There is no reason to do that unless you plan to reuse it. JointDef doesn't really do anything, as the name suggests, it is only a definition and even though you can change the fields, the Joint that was created using the JointDef will not change, as you probably discovered.

What you want to do is store a reference to the Joint that is created using the JointDef and then manipulate the Joint itself.

What exactly are you trying to accomplish? Specifying the problem better will help us provide you with a better answer.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.