Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VRope with variable length #1

Open
UnsafePointer opened this issue Jan 7, 2013 · 0 comments
Open

VRope with variable length #1

UnsafePointer opened this issue Jan 7, 2013 · 0 comments

Comments

@UnsafePointer
Copy link

Hi,

I have been using Verlet Rope class, It's fantastic! I'm working in a game with variable length ropes, wich I achieve by changing the max length of the joint by calling:

((b2RopeJoint *)_joint)->SetMaxLength(((b2RopeJoint *)_joint)->GetMaxLength() + 10/PTM_RATIO);

Everything works great with the joints, I checked with the debugger, but I cannot get the VRope class update the number of sprites it uses to represent the rope, for example, when I decrease the joint a lot, I get a little sag.

Could you help me? Let me know I you need more info, like project or screenshots.

Thanks in advance,

Renzo Crisóstomo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant