How to move a activeshape without body

Official forum for the Chipmunk2D Physics Library.
Post Reply
myandroid
Posts: 4
Joined: Sun Apr 26, 2009 8:56 pm
Contact:

How to move a activeshape without body

Post by myandroid »

How to move a activeshape without body?
who know how to do,please tell me
thanks in advance
User avatar
slembcke
Site Admin
Posts: 4166
Joined: Tue Aug 14, 2007 7:13 pm
Contact:

Re: How to move a activeshape without body

Post by slembcke »

You can't. What is it that you want to do exactly?
Can't sleep... Chipmunks will eat me...
Check out our latest projects! -> http://howlingmoonsoftware.com/wordpress/
myandroid
Posts: 4
Joined: Sun Apr 26, 2009 8:56 pm
Contact:

Re: How to move a activeshape without body

Post by myandroid »

i want to make a game about basketball.
i want to control ball under with gravith, so i add gravity to Space,
but i want basketry to move left to right without gravity control,so i move the basketry as Sprite, i add some shape to sumalate the basketry and it isn't linked with the basketry, i want to move the shape just like the basketry move from left to right
patrickC
Posts: 7
Joined: Sat May 02, 2009 10:55 am
Contact:

Re: How to move a activeshape without body

Post by patrickC »

you still need to attach the baskethoop shape to a cpbody, but then don't add that body to the space.
This way you can move the body manually, but it won't get simulated and won't be affected by gravity.
cheers
myandroid
Posts: 4
Joined: Sun Apr 26, 2009 8:56 pm
Contact:

Re: How to move a activeshape without body

Post by myandroid »

thanks,i take a try
Post Reply

Who is online

Users browsing this forum: No registered users and 11 guests