netsurferj
19-08-2008 20:03:58
Hi
When I only activate bodies later in my game, I set them to sleep, and set their entities to hidden. When they are activated, I simply reverse this (This allows the game not to lag when dynamically "loading" bodies)
The problem I discovered is when I walk through these bodies, the become awake, while they should still be sleeping. They need to be in the same group as the camera for collision purposes, but they should not wake up on contact with the camera.
Is there some way I can tell them to stay asleep untill manually woken up?
thanx
When I only activate bodies later in my game, I set them to sleep, and set their entities to hidden. When they are activated, I simply reverse this (This allows the game not to lag when dynamically "loading" bodies)
The problem I discovered is when I walk through these bodies, the become awake, while they should still be sleeping. They need to be in the same group as the camera for collision purposes, but they should not wake up on contact with the camera.
Is there some way I can tell them to stay asleep untill manually woken up?
thanx