Page 1 of 1

how to move static body? thanks

Posted: Wed Jul 30, 2014 3:37 am
by magic373
I want to move static body , I use setPos() ...but it 's wrong.

Re: how to move static body? thanks

Posted: Thu Jul 31, 2014 2:20 pm
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