Take the 2-minute tour ×
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

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.

share|improve this question
2  
This is so very vague. You don't tell us what you've tried and it's hard to tell what you even want. –  Byte56 May 24 '12 at 14:34
    
@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. –  Byte56 May 24 '12 at 16:52
    
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. –  JohnEye May 24 '12 at 17:59
    
@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. –  Byte56 May 24 '12 at 20:34
    
I see. Still, I think the question is valid and does not deserve so many downvotes. –  JohnEye May 25 '12 at 1:16

1 Answer 1

up vote 1 down vote accepted

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.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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