C4 Engine Terathon Software C4 Engine API Documentation

• Physics Manager

API Links
Developer Links

class Field

Defined in:  C4Fields.h
The Field class represents a field node in a scene graph.
Definition

class Field : public Node

Member Functions
Field::GetFieldType Returns the specific type of a field.
Field::GetForce Returns the force assigned to a field.
Field::SetForce Assigns a force to a field.
Constructor

Field(FieldType type);

The constructor has protected access. A Field class can only exist as the base class for a more specific type of field.
Parameters
type The type of the field. See below for a list of possible types.
Description
The Field class represents a field node in a scene graph.

A field node can be of one of the following types.
kFieldBox A box field.
kFieldCylinder A cylinder field.
kFieldSphere A sphere field.
Base Classes
Node A Field node is a scene graph node.
See Also
FieldObject

Force