Actor wakes up

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

betajaen

19-08-2008 20:49:22

Do you mean; You walk though some of the bodies (which are near a group of other bodies) and all of them wake up? I believe that's standard behaviour; PhysX works out a bunch of actors which are closely together; i.e. a stack of them, or a pile of them close together on the floor. If one is awake they are all awake.

I suppose if you really have to; you could use a sleeping callback and make them kinematic.