syn keyword cConstant FOCUS_SET "default" NEITHER
syn keyword cConstant DYNAMIC STATIC PASSWORD
-syn keyword cConstant RIGID_BOX RIGID_CIRCLE SOFT_BOX SOFT_CIRCLE
+syn keyword cConstant RIGID_BOX RIGID_SPHERE SOFT_BOX SOFT_SPHERE
+syn keyword cConstant RIGID_CYLINDER SOFT_CYLINDER
syn keyword cConstant CLOTH BOUNDARY_TOP BOUNDARY_BOTTOM BOUNDARY_LEFT
syn keyword cConstant BOUNDARY_RIGHT BOUNDARY_FRONT BOUNDARY_BACK
syn keyword cConstant PHYSICS_IMPULSE PHYSICS_TORQUE_IMPULSE
syn keyword cConstant BOX_RIGHT BOX_TOP BOX_BOTTOM
syn keyword cConstant CYLINDER_MIDDLE_FRONT CYLINDER_MIDDLE_BACK
syn keyword cConstant CYLINDER_FRONT CYLINDER_BACK CYLINDER_CURVED
-syn keyword cConstant CLOTH_FRONT CLOTH_BACK SOFT_BOX_MIDDLE_FRONT
-syn keyword cConstant SOFT_BOX_MIDDLE_BACK SOFT_BOX_FRONT
-syn keyword cConstant SOFT_BOX_BACK SOFT_BOX_LEFT SOFT_BOX_RIGHT
-syn keyword cConstant SOFT_BOX_TOP SOFT_BOX_BOTTOM SOFT_CIRCLE_BACK
-syn keyword cConstant SOFT_CIRCLE_MIDDLE_FRONT SOFT_CIRCLE_FRONT
-syn keyword cConstant SOFT_CIRCLE_MIDDLE_BACK SOFT_CIRCLE_CURVED
+syn keyword cConstant CLOTH_FRONT CLOTH_BACK SPHERE_FRONT SPHERE_BACK
syn keyword cTodo contained TODO FIXME XXX
Valid types:
@li NONE
@li RIGID_BOX
- @li RIGID_CIRCLE
+ @li RIGID_SPHERE
+ @li RIGID_CYLINDER
@li SOFT_BOX
- @li SOFT_CIRCLE
+ @li SOFT_SPHERE
+ @li SOFT_CYLINDER
@li CLOTH
@li BOUNDARY_TOP
@li BOUNDARY_BOTTOM
body = parse_enum(0,
"NONE", EDJE_PART_PHYSICS_BODY_NONE,
"RIGID_BOX", EDJE_PART_PHYSICS_BODY_RIGID_BOX,
- "RIGID_CIRCLE", EDJE_PART_PHYSICS_BODY_RIGID_CIRCLE,
+ "RIGID_SPHERE", EDJE_PART_PHYSICS_BODY_RIGID_SPHERE,
+ "RIGID_CYLINDER", EDJE_PART_PHYSICS_BODY_RIGID_CYLINDER,
"SOFT_BOX", EDJE_PART_PHYSICS_BODY_SOFT_BOX,
- "SOFT_CIRCLE", EDJE_PART_PHYSICS_BODY_SOFT_CIRCLE,
+ "SOFT_SPHERE", EDJE_PART_PHYSICS_BODY_SOFT_SPHERE,
+ "SOFT_CYLINDER", EDJE_PART_PHYSICS_BODY_SOFT_CYLINDER,
"CLOTH", EDJE_PART_PHYSICS_BODY_CLOTH,
"BOUNDARY_TOP", EDJE_PART_PHYSICS_BODY_BOUNDARY_TOP,
"BOUNDARY_BOTTOM", EDJE_PART_PHYSICS_BODY_BOUNDARY_BOTTOM,
@effect
Set the face (all caps) from among the available body's shape faces.
Valid faces:
- * BOX_MIDDLE_FRONT,
- * BOX_MIDDLE_BACK,
- * BOX_FRONT,
- * BOX_BACK,
- * BOX_LEFT,
- * BOX_RIGHT,
- * BOX_TOP,
- * BOX_BOTTOM,
- * CYLINDER_MIDDLE_FRONT,
- * CYLINDER_MIDDLE_BACK,
- * CYLINDER_FRONT,
- * CYLINDER_BACK,
- * CYLINDER_CURVED,
- * CLOTH_FRONT,
+ * BOX_MIDDLE_FRONT
+ * BOX_MIDDLE_BACK
+ * BOX_FRONT
+ * BOX_BACK
+ * BOX_LEFT
+ * BOX_RIGHT
+ * BOX_TOP
+ * BOX_BOTTOM
+ * CLOTH_FRONT
* CLOTH_BACK
- * SOFT_BOX_MIDDLE_FRONT,
- * SOFT_BOX_MIDDLE_BACK,
- * SOFT_BOX_FRONT,
- * SOFT_BOX_BACK,
- * SOFT_BOX_LEFT,
- * SOFT_BOX_RIGHT,
- * SOFT_BOX_TOP,
- * SOFT_BOX_BOTTOM,
- * SOFT_CIRCLE_MIDDLE_FRONT,
- * SOFT_CIRCLE_MIDDLE_BACK,
- * SOFT_CIRCLE_FRONT,
- * SOFT_CIRCLE_BACK,
- * SOFT_CIRCLE_CURVED,
+ * CYLINDER_MIDDLE_FRONT
+ * CYLINDER_MIDDLE_BACK
+ * CYLINDER_FRONT
+ * CYLINDER_BACK
+ * CYLINDER_CURVED
+ * SPHERE_FRONT
+ * SPHERE_BACK
@endproperty
*/
#ifdef HAVE_EPHYSICS
"BOX_RIGHT", EPHYSICS_BODY_BOX_FACE_RIGHT,
"BOX_TOP", EPHYSICS_BODY_BOX_FACE_TOP,
"BOX_BOTTOM", EPHYSICS_BODY_BOX_FACE_BOTTOM,
+ "CLOTH_FRONT", EPHYSICS_BODY_CLOTH_FACE_FRONT,
+ "CLOTH_BACK", EPHYSICS_BODY_CLOTH_FACE_BACK,
"CYLINDER_MIDDLE_FRONT", EPHYSICS_BODY_CYLINDER_FACE_MIDDLE_FRONT,
"CYLINDER_MIDDLE_BACK", EPHYSICS_BODY_CYLINDER_FACE_MIDDLE_BACK,
"CYLINDER_FRONT", EPHYSICS_BODY_CYLINDER_FACE_FRONT,
"CYLINDER_BACK", EPHYSICS_BODY_CYLINDER_FACE_BACK,
"CYLINDER_CURVED", EPHYSICS_BODY_CYLINDER_FACE_CURVED,
- "CLOTH_FRONT", EPHYSICS_BODY_CLOTH_FACE_FRONT,
- "CLOTH_BACK", EPHYSICS_BODY_CLOTH_FACE_BACK,
- "SOFT_ELLIPSOID_FRONT", EPHYSICS_BODY_SOFT_ELLIPSOID_FACE_FRONT,
- "SOFT_ELLIPSOID_BACK", EPHYSICS_BODY_SOFT_ELLIPSOID_FACE_BACK,
- "SOFT_BOX_MIDDLE_FRONT", EPHYSICS_BODY_SOFT_BOX_FACE_MIDDLE_FRONT,
- "SOFT_BOX_MIDDLE_BACK", EPHYSICS_BODY_SOFT_BOX_FACE_MIDDLE_BACK,
- "SOFT_BOX_FRONT", EPHYSICS_BODY_SOFT_BOX_FACE_FRONT,
- "SOFT_BOX_BACK", EPHYSICS_BODY_SOFT_BOX_FACE_BACK,
- "SOFT_BOX_LEFT", EPHYSICS_BODY_SOFT_BOX_FACE_LEFT,
- "SOFT_BOX_RIGHT", EPHYSICS_BODY_SOFT_BOX_FACE_RIGHT,
- "SOFT_BOX_TOP", EPHYSICS_BODY_SOFT_BOX_FACE_TOP,
- "SOFT_BOX_BOTTOM", EPHYSICS_BODY_SOFT_BOX_FACE_BOTTOM,
- "SOFT_CIRCLE_MIDDLE_FRONT", EPHYSICS_BODY_SOFT_CIRCLE_FACE_MIDDLE_FRONT,
- "SOFT_CIRCLE_MIDDLE_BACK", EPHYSICS_BODY_SOFT_CIRCLE_FACE_MIDDLE_BACK,
- "SOFT_CIRCLE_FRONT", EPHYSICS_BODY_SOFT_CIRCLE_FACE_FRONT,
- "SOFT_CIRCLE_BACK", EPHYSICS_BODY_SOFT_CIRCLE_FACE_BACK,
- "SOFT_CIRCLE_CURVES", EPHYSICS_BODY_SOFT_CIRCLE_FACE_CURVED,
+ "SPHERE_FRONT", EPHYSICS_BODY_SPHERE_FACE_FRONT,
+ "SPHERE_BACK", EPHYSICS_BODY_SPHERE_FACE_BACK,
NULL);
EINA_LIST_FOREACH(current_desc->physics.faces, l, pface2)
}
if ((ep->part->physics_body == EDJE_PART_PHYSICS_BODY_SOFT_BOX) ||
- (ep->part->physics_body == EDJE_PART_PHYSICS_BODY_SOFT_CIRCLE) ||
+ (ep->part->physics_body == EDJE_PART_PHYSICS_BODY_SOFT_SPHERE) ||
+ (ep->part->physics_body == EDJE_PART_PHYSICS_BODY_SOFT_CYLINDER) ||
(ep->part->physics_body == EDJE_PART_PHYSICS_BODY_CLOTH))
ephysics_body_soft_body_hardness_set(ep->body,
pf->physics.hardness * 100);
case EDJE_PART_PHYSICS_BODY_RIGID_BOX:
rp->body = ephysics_body_box_add(world);
break;
- case EDJE_PART_PHYSICS_BODY_RIGID_CIRCLE:
- rp->body = ephysics_body_circle_add(world);
+ case EDJE_PART_PHYSICS_BODY_RIGID_SPHERE:
+ rp->body = ephysics_body_sphere_add(world);
+ break;
+ case EDJE_PART_PHYSICS_BODY_RIGID_CYLINDER:
+ rp->body = ephysics_body_cylinder_add(world);
break;
case EDJE_PART_PHYSICS_BODY_SOFT_BOX:
rp->body = ephysics_body_soft_box_add(world);
break;
- case EDJE_PART_PHYSICS_BODY_SOFT_CIRCLE:
- rp->body = ephysics_body_soft_circle_add(world);
+ case EDJE_PART_PHYSICS_BODY_SOFT_SPHERE:
+ rp->body = ephysics_body_soft_sphere_add(world, 0);
+ break;
+ case EDJE_PART_PHYSICS_BODY_SOFT_CYLINDER:
+ rp->body = ephysics_body_soft_cylinder_add(world);
break;
case EDJE_PART_PHYSICS_BODY_CLOTH:
rp->body = ephysics_body_cloth_add(world, 0, 0);