Skip to content

3D ellipse movement

Move objects on ellipses or smoothly back and forth in one direction.

Authors and contributors to this community extension: 4ian, VictrisGames, D8H.


It allows objects to move:

  • on an ellipsis or arcs
  • smoothly vertically or horizontally (by setting one radius to 0)
  • on a sine wave (by adding a force)

It can be used for:

  • Making objects float, such as powerups or coins
  • Moving platforms
  • Enemy movement patterns
  • Making a player constantly turn right or left (open the project online)

Tip

Learn how to install new extensions by following a step-by-step guide.

3D ellipse movement

Move objects on ellipses or smoothly back and forth in one direction.

Behavior actions

Ellipse height
Change the ellipse height of the object.

Loop duration
Change the loop duration (in seconds).

Teleport at an angle
Change the movement angle. The object is teleported according to the angle.

Turn left or right
Change the in which side the object is turning (left or right).

Ellipse width
Change the ellipse width of the object.

Turn the other way
Change the turning direction (left or right).

Behavior conditions

Ellipse height
Compare the ellipse height of the object.

Is turning left
Check if the object is turning left.

Loop duration
Compare the loop duration (in seconds).

Ellipse width
Compare the ellipse width of the object.

Behavior expressions

Expression Description
Object.PhysicsEllipseMovement3D::CenterH() Return the movement center position on Y axis.
Object.PhysicsEllipseMovement3D::CenterV() Return the movement center position on X axis.
Object.PhysicsEllipseMovement3D::Height() Return the ellipse height of the object.
Object.PhysicsEllipseMovement3D::LoopDuration() Return the loop duration (in seconds).
Object.PhysicsEllipseMovement3D::MovementAngle() Return the movement angle of the object.
Object.PhysicsEllipseMovement3D::Width() Return the ellipse width of the object.

This page is an auto-generated reference page about the 3D ellipse movement extension, made by the community of GDevelop, the open-source, cross-platform game engine designed for everyone. Learn more about all GDevelop community-made extensions here.