User Tag List

Results 1 to 4 of 4

Thread: Box2D or Chipmunk physics, how do I shrink or grow a shape?

  1. #1
    Clicker Multimedia Fusion 2

    Join Date
    Jun 2006
    Location
    Montreal, Canada
    Posts
    234
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question Box2D or Chipmunk physics, how do I shrink or grow a shape?

    I'm trying to figure out how to increase the diameter of a circle shape during gameplay.
    I've checked the examples for both Box2D or Chipmunk extensions, and I understand how you create a new circle shape with a specified size parameter. But I can't figure out if there a way to change that size later after the shape was created.
    I want to make something like a ball that shrinks and grows.

    This is kind'a urgent since I'm experimenting for a 48 hours game jam.

  2. #2
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleSWF Export ModuleUnicode Add-on
    Looki's Avatar
    Join Date
    Aug 2006
    Location
    Karlsruhe, Germany
    Posts
    3,741
    Mentioned
    5 Post(s)
    Tagged
    1 Thread(s)
    In Box2D you'll have to create a new shape and remove the old one, I don't think there's a better way.

  3. #3
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export Module
    KLiK-iT's Avatar
    Join Date
    Sep 2011
    Location
    New Jersey
    Posts
    2,852
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    There is no better way. You just can't re-size the shape and have it act like the original as far I know. I never tried this,.but what about an animation for the ball? One that goes from big to small and the other small to big? Worth a try!

  4. #4
    Clicker Multimedia Fusion 2

    Join Date
    Jun 2006
    Location
    Montreal, Canada
    Posts
    234
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yeah that's pretty much what I ended up doing and it worked well enough. Thanks.

Similar Threads

  1. iOS Box2D or Chipmunk Physics
    By buckeroo in forum iOS Export Module Version 2.0
    Replies: 8
    Last Post: 12th December 2012, 06:16 PM
  2. Converting Chipmunk car engine to Box2D v2.0.0
    By Vetmora in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 30th June 2012, 12:22 AM
  3. Making text grow and shrink
    By richardh in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 25th July 2011, 12:59 AM
  4. chipmunk v box2D
    By arfa in forum Multimedia Fusion 2 - Technical Support
    Replies: 6
    Last Post: 24th July 2011, 11:20 AM
  5. Same glitch on Chipmunk/Box2D I have!
    By Spyro23 in forum Extension Development
    Replies: 2
    Last Post: 12th December 2008, 02:10 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •