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 / About Spring Joint

Author
Message
Subbir
12
Years of Service
User Offline
Joined: 20th Jun 2012
Location:
Posted: 2nd Oct 2012 12:10 Edited at: 2nd Oct 2012 13:56
How can I make a spring joint like CreateRevoluteJoint or CreateWeldJoint? Is there any method in agk or I have to write it by myself?

Subbir Rahman
Subbir
12
Years of Service
User Offline
Joined: 20th Jun 2012
Location:
Posted: 3rd Oct 2012 08:37
Is there no one to answer this question??

Subbir Rahman
JimHawkins
15
Years of Service
User Offline
Joined: 26th Jul 2009
Location: Hull - UK
Posted: 3rd Oct 2012 09:12
http://www.appgamekit.com/documentation/examples/physics/7_joints2.htm

When all else fails, read the docs!

-- Jim DO IT FASTER, EASIER AND BETTER WITH AppGameKit FOR PASCAL
Subbir
12
Years of Service
User Offline
Joined: 20th Jun 2012
Location:
Posted: 3rd Oct 2012 12:13
This is not a spring joint. Thanks anyway

Subbir Rahman
baxslash
Valued Member
Bronze Codemaster
17
Years of Service
User Offline
Joined: 26th Dec 2006
Location: Duffield
Posted: 3rd Oct 2012 12:22
I would use a prismatic joint. You might need to add forces to the sprites dependant on their distance apart as I'm not sure if joint limits work on prismatic joints:
http://www.appgamekit.com/documentation/Reference/Physics/CreatePrismaticJoint.htm


this.mess = abs(sin(times#))
Subbir
12
Years of Service
User Offline
Joined: 20th Jun 2012
Location:
Posted: 3rd Oct 2012 14:46
I have a catapult like angry birds. It will release balls. I dont think it will show the effects like bouncing rope after releasing the balls. Besides I have to write extra code for the ropes like stretching or squeezing. With spring joint its a long code to write.

Subbir Rahman

Login to post a reply

Server time is: 2024-11-23 23:43:06
Your offset time is: 2024-11-23 23:43:06