Zones¶
-
class
serge.zone.
Zone
[source]¶ Bases:
serge.geometry.Rectangle
,serge.common.Loggable
A zone
A zone is part of a world. It is a container for objects and it controls whether objects will take part in world updates.
-
sleepActor
(actor)[source]¶ Tell the actor to go to sleep from a physics perspective
The actor will still be visible and will still be updated but it will not update its physics. Useful for optimising when an actor does not need to interact with the physics simulation for a while.
-
updatePhysics
(interval)[source]¶ Perform a step of the physics engine
You do not normally need to call this method as it is called by the updateZone method. You may call this to advance the physics simulation along without affecting other game elements.
-