Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / Can the physics in AGK simulate rope? I mean something which is flexibility?

Author
Message
halley
13
Years of Service
User Offline
Joined: 27th Apr 2011
Location: China
Posted: 11th Oct 2011 16:35
I wanna use withe in my game.

give my best
Mobiius
Valued Member
21
Years of Service
User Offline
Joined: 27th Feb 2003
Location: The Cold North
Posted: 11th Oct 2011 21:19
You can use thin rectangles linked with joints to create rope segments. The longer the rectangles, the less accurate the rope becomes.



See how the lines make the rope, you can do this with rectangular sprites.

My signature is NOT a moderator plaything! Stop changing it!
bjadams
AGK Backer
16
Years of Service
User Offline
Joined: 29th Mar 2008
Location:
Posted: 11th Oct 2011 21:39
won't the corners of the rectangle look very unclean when the rope rotates at wide angles?
Mobiius
Valued Member
21
Years of Service
User Offline
Joined: 27th Feb 2003
Location: The Cold North
Posted: 11th Oct 2011 22:30 Edited at: 11th Oct 2011 22:32
Use curved edge sprites and overlap the edges?

Kinda like these.....



Imagine using sprites to create a chain, with a rope texture.

My signature is NOT a moderator plaything! Stop changing it!

Attachments

Login to view attachments
baxslash
Valued Member
Bronze Codemaster
17
Years of Service
User Offline
Joined: 26th Dec 2006
Location: Duffield
Posted: 12th Oct 2011 03:00
You could even have fully curved images set up for a multitude of angles and use the one closest to the angle between the current sprite and it's two neighbours...

I'm sure that's possible, just not sure how quick it would be as close as you'd get to a realistic rope I think. Damn, might have to try that idea out, sounds cool.

bjadams
AGK Backer
16
Years of Service
User Offline
Joined: 29th Mar 2008
Location:
Posted: 12th Oct 2011 10:17
sounds interesting. thanks
Airslide
20
Years of Service
User Offline
Joined: 18th Oct 2004
Location: California
Posted: 14th Oct 2011 01:52
Depending on your device resolution I imagine even sharp corners would probably look fine on a phone. PC or Tablet, maybe not.

Login to post a reply

Server time is: 2024-11-22 02:24:54
Your offset time is: 2024-11-22 02:24:54