how to move static body? thanks

Official forum for the Chipmunk2D Physics Library.
Post Reply
magic373
Posts: 1
Joined: Wed Jul 30, 2014 3:33 am
Contact:

how to move static body? thanks

Post by magic373 »

I want to move static body , I use setPos() ...but it 's wrong.
User avatar
slembcke
Site Admin
Posts: 4166
Joined: Tue Aug 14, 2007 7:13 pm
Contact:

Re: how to move static body? thanks

Post by slembcke »

By making a static body in Chipmunk, you are telling it can be optimized because it will never move. If you do move it you need to let the cpSpace know so that it can update it:

http://chipmunk-physics.net/release/Chi ... alIndexing
Can't sleep... Chipmunks will eat me...
Check out our latest projects! -> http://howlingmoonsoftware.com/wordpress/
Post Reply

Who is online

Users browsing this forum: No registered users and 16 guests