2D Top-Down Physics Car
Simulate top-down car motion with drifting.
Authors and contributors to this experimental extension: D8H.
Simulate car motion, from a top-down view, with the 2D Physics Engine behavior.
Tip
Learn how to install new extensions by following a step-by-step guide.
Physics car
Simulate 2D car motion, from a top-down view.
Behavior actions
Draw forces for debug
Draw forces applying on the car for debug purpose.
See parameters
- Parameter 0: 👾 Object
- Parameter 1: 🧩 Behavior
- Parameter 2 (👾 Object): Shape painter
Technical note: parameter 3 are internal parameters handled by GDevelop.
Acceleration
Change the acceleration of the object.
See parameters
- Parameter 0: 👾 Object
- Parameter 1: 🧩 Behavior
- Parameter 2: 🟰 Operator
- Parameter 3 (🔢 Number): Value
Technical note: parameter 4 are internal parameters handled by GDevelop.
Maximum speed
Change the maximum speed of the object.
See parameters
- Parameter 0: 👾 Object
- Parameter 1: 🧩 Behavior
- Parameter 2: 🟰 Operator
- Parameter 3 (🔢 Number): Value
Technical note: parameter 4 are internal parameters handled by GDevelop.
Steering angle
Change the steering angle of the object.
See parameters
- Parameter 0: 👾 Object
- Parameter 1: 🧩 Behavior
- Parameter 2: 🟰 Operator
- Parameter 3 (🔢 Number): Value
Technical note: parameter 4 are internal parameters handled by GDevelop.
Maximum steering angle
Change the maximum steering angle of the object.
See parameters
- Parameter 0: 👾 Object
- Parameter 1: 🧩 Behavior
- Parameter 2: 🟰 Operator
- Parameter 3 (🔢 Number): Value
Technical note: parameter 4 are internal parameters handled by GDevelop.
Sterring back speed
Change the sterring speed when turning back of the object.
See parameters
- Parameter 0: 👾 Object
- Parameter 1: 🧩 Behavior
- Parameter 2: 🟰 Operator
- Parameter 3 (🔢 Number): Value
Technical note: parameter 4 are internal parameters handled by GDevelop.
Steering speed
Change the steering speed of the object.
See parameters
- Parameter 0: 👾 Object
- Parameter 1: 🧩 Behavior
- Parameter 2: 🟰 Operator
- Parameter 3 (🔢 Number): Value
Technical note: parameter 4 are internal parameters handled by GDevelop.
Wheel grip ratio
Change the wheel grip ratio of the object (from 0 to 1). A ratio of 0 is like driving on ice.
See parameters
- Parameter 0: 👾 Object
- Parameter 1: 🧩 Behavior
- Parameter 2: 🟰 Operator
- Parameter 3 (🔢 Number): Value
Technical note: parameter 4 are internal parameters handled by GDevelop.
Simulate acceleration stick
Simulate an acceleration stick for a given axis force.
See parameters
- Parameter 0: 👾 Object
- Parameter 1: 🧩 Behavior
- Parameter 2 (🔢 Number): Stick force
Technical note: parameter 3 are internal parameters handled by GDevelop.
Simulate down key press
Simulate a press of the down key.
See parameters
- Parameter 0: 👾 Object
- Parameter 1: 🧩 Behavior
Technical note: parameter 2 are internal parameters handled by GDevelop.
Simulate left key press
Simulate a press of the left key.
See parameters
- Parameter 0: 👾 Object
- Parameter 1: 🧩 Behavior
Technical note: parameter 2 are internal parameters handled by GDevelop.
Simulate right key press
Simulate a press of the right key.
See parameters
- Parameter 0: 👾 Object
- Parameter 1: 🧩 Behavior
Technical note: parameter 2 are internal parameters handled by GDevelop.
Simulate steering stick
Simulate a steering stick for a given axis force.
See parameters
- Parameter 0: 👾 Object
- Parameter 1: 🧩 Behavior
- Parameter 2 (🔢 Number): Stick force
Technical note: parameter 3 are internal parameters handled by GDevelop.
Simulate up key press
Simulate a press of the up key.
See parameters
- Parameter 0: 👾 Object
- Parameter 1: 🧩 Behavior
Technical note: parameter 2 are internal parameters handled by GDevelop.
Behavior conditions
Acceleration
Compare the acceleration of the object.
See parameters
- Parameter 0: 👾 Object
- Parameter 1: 🧩 Behavior
- Parameter 2: 🟰 Relational operator
- Parameter 3 (🔢 Number): Value to compare
Technical note: parameter 4 are internal parameters handled by GDevelop.
Maximum speed
Compare the maximum speed of the object.
See parameters
- Parameter 0: 👾 Object
- Parameter 1: 🧩 Behavior
- Parameter 2: 🟰 Relational operator
- Parameter 3 (🔢 Number): Value to compare
Technical note: parameter 4 are internal parameters handled by GDevelop.
Steering angle
Compare the steering angle of the object.
See parameters
- Parameter 0: 👾 Object
- Parameter 1: 🧩 Behavior
- Parameter 2: 🟰 Relational operator
- Parameter 3 (🔢 Number): Value to compare
Technical note: parameter 4 are internal parameters handled by GDevelop.
Maximum steering angle
Compare the maximum steering angle of the object.
See parameters
- Parameter 0: 👾 Object
- Parameter 1: 🧩 Behavior
- Parameter 2: 🟰 Relational operator
- Parameter 3 (🔢 Number): Value to compare
Technical note: parameter 4 are internal parameters handled by GDevelop.
Sterring back speed
Compare the sterring speed when turning back of the object.
See parameters
- Parameter 0: 👾 Object
- Parameter 1: 🧩 Behavior
- Parameter 2: 🟰 Relational operator
- Parameter 3 (🔢 Number): Value to compare
Technical note: parameter 4 are internal parameters handled by GDevelop.
Steering speed
Compare the steering speed of the object.
See parameters
- Parameter 0: 👾 Object
- Parameter 1: 🧩 Behavior
- Parameter 2: 🟰 Relational operator
- Parameter 3 (🔢 Number): Value to compare
Technical note: parameter 4 are internal parameters handled by GDevelop.
Wheel grip ratio
Compare the wheel grip ratio of the object (from 0 to 1). A ratio of 0 is like driving on ice.
See parameters
- Parameter 0: 👾 Object
- Parameter 1: 🧩 Behavior
- Parameter 2: 🟰 Relational operator
- Parameter 3 (🔢 Number): Value to compare
Technical note: parameter 4 are internal parameters handled by GDevelop.
Behavior expressions
Expression | Description | |
---|---|---|
Object.PhysicsCar::Acceleration() |
Return the acceleration of the object. | |
Object.PhysicsCar::SpeedMax() |
Return the maximum speed of the object. | |
Object.PhysicsCar::SteeringAngle() |
Return the steering angle of the object. | |
Object.PhysicsCar::SteeringAngleMax() |
Return the maximum steering angle of the object. | |
Object.PhysicsCar::SteeringBackSpeed() |
Return the sterring speed when turning back of the object. | |
Object.PhysicsCar::SteeringSpeed() |
Return the steering speed of the object. | |
Object.PhysicsCar::WheelGripRatio() |
Return the wheel grip ratio of the object (from 0 to 1). A ratio of 0 is like driving on ice. |
This page is an auto-generated reference page about the 2D Top-Down Physics Car 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.