C4 Engine Terathon Software C4 Engine API Documentation

• World Manager

API Links
Developer Links

class World

Defined in:  C4World.h
The World class encapsulates a complete world.
Definition

class World : public LinkTarget<World>

Member Functions
World::GetWorldFlags Returns the world flags.
World::SetWorldFlags Sets the world flags.
World::SetFinalColorTransform Sets the color transform used in post-processing.
World::GetRootNode Returns the root node of a world.
World::GetCamera Returns the current camera.
World::SetCamera Sets the current camera.
World::AddInteractor Adds an interactor to a world.
World::RemoveInteractor Removes an interactor from a world.
World::Interact Tests for interactions in a world.
World::SetRenderSize Sets the size of the viewport into which the world is rendered.
World::Render Renders a world.
 
World::FindZone Finds the zone containing a given point.
World::ActivateTriggers Activates all triggers through which a given segment passes.
World::HandleNewRigidBodyContact Called by default when a new contact is made between two rigid bodies.
World::HandleNewGeometryContact Called by default when a new contact is made between a rigid body and a geometry node.
World::DetectCollision Detects a collision between world geometry and a swept sphere.
World::QueryWorld Detects whether a swept sphere intersects world geometry or rigid bodies.
World::GetController Returns the controller having a specific controller index.
Constructor

World(const char *name, unsigned long flags = 0);

World(Node *root, unsigned long flags = 0);

Parameters
name The name of a world resource.
root A pointer to the root node of the world's scene graph.
flags The initial world flags.
Description


Base Classes
LinkTarget<World> Used internally by the World Manager.
See Also
Node

WorldMgr