how to move static body? thanks
-
- Posts: 1
- Joined: Wed Jul 30, 2014 3:33 am
- Contact:
how to move static body? thanks
I want to move static body , I use setPos() ...but it 's wrong.
- slembcke
- Site Admin
- Posts: 4166
- Joined: Tue Aug 14, 2007 7:13 pm
- Contact:
Re: how to move static body? thanks
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
http://chipmunk-physics.net/release/Chi ... alIndexing
Can't sleep... Chipmunks will eat me...
Check out our latest projects! -> http://howlingmoonsoftware.com/wordpress/
Check out our latest projects! -> http://howlingmoonsoftware.com/wordpress/
Who is online
Users browsing this forum: No registered users and 14 guests