![]() |
![]() |
![]() |
Clutter-Box2D 0.10.0 Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Implemented Interfaces | Properties |
enum ClutterBox2DType; ClutterBox2D; ClutterBox2DClass; ClutterActor * clutter_box2d_new (void); void clutter_box2d_set_simulating (ClutterBox2D *box2d, gboolean simulating); gboolean clutter_box2d_get_simulating (ClutterBox2D *box2d);
GObject +----GInitiallyUnowned +----ClutterActor +----ClutterGroup +----ClutterBox2D
ClutterBox2D is a container that can physically simulate collisions between dynamic and static actors.
typedef enum { CLUTTER_BOX2D_NONE = 0, CLUTTER_BOX2D_DYNAMIC, CLUTTER_BOX2D_STATIC, } ClutterBox2DType;
Type of interactions between bodies.
typedef struct _ClutterBox2D ClutterBox2D;
The ClutterBox2D physics container, the struct has no public fields.
ClutterActor * clutter_box2d_new (void);
Create a new ClutterBox2D container.
Returns : |
a new ClutterBox2D container. |
void clutter_box2d_set_simulating (ClutterBox2D *box2d, gboolean simulating);
Sets whether the simulation engine of box2d
is running or not, the
value defaults to TRUE.
|
a ClutterBox2D |
|
the new state, TRUE or FALSE |
gboolean clutter_box2d_get_simulating (ClutterBox2D *box2d);
Checks whether box2d
is simulating or not.
the simulation engine to be running when the group is created.
|
a ClutterBox2D |
Returns : |
whether the ClutterBox2D group is currently doing physical simulation. |
"gravity"
property"gravity" ClutterVertex* : Write
The 2D vector specifying the gravity direction and magnitude, pass in 0.0, 0.0 for zero gravity.
"simulating"
property"simulating" gboolean : Read / Write
Whether the physics simulation engine is running or not.
Default value: TRUE