The Daily Click ::. Forums ::. Klik Coding Help ::. MMF2 extension Box2D or Chipmunk physics. How do I shrink or grow a shape?
 

Post Reply  Post Oekaki 
 

Posted By Message

RedHades



Registered
  25/05/2003
Points
  108

Has Donated, Thank You!
28th January, 2012 at 08:20:13 -

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.

 
<0> ReDhAdEs <0>

Windybeard Games



Registered
  14/04/2005
Points
  219

You've Been Circy'd!VIP MemberCandy Cane
30th January, 2012 at 02:11:41 -

im assuming its an active object, if yes then you can play around with the scale parameters at runtime.

 
n/a

Chris Burrows



Registered
  14/09/2002
Points
  2396

GOTW WINNER OCT. 2011
30th January, 2012 at 13:09:12 -

Yes, the hot spot is the centre of the expansion.

 
n/a

Eternal Man [EE]

Pitied the FOO

Registered
  18/01/2007
Points
  2955

Game of the Week WinnerHero of TimeLOL SignI am an April Fool
31st January, 2012 at 03:35:14 -

He's referring to 'shapes' as used with Box2D, not active object scaling.

 
Eternal Entertainment's Code'n'Art Man

E_E = All Indie


...actually Ell Endie, but whatever.
Image
Image
   

Post Reply



 



Advertisement

Worth A Click