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 & details
- Parameter 0: 👾 Object
- Parameter 1: 🧩 Behavior
- Parameter 2 (👾 Object): Shape painter
Technical note: parameter 3 is an internal parameter handled by GDevelop.
Technical note: this action internal type (in GDevelop JSON) is
PhysicsCar::PhysicsCar::DrawDebug.
Acceleration
Change the acceleration of the object.
See parameters & details
- Parameter 0: 👾 Object
- Parameter 1: 🧩 Behavior
- Parameter 2: 🟰 Operator
- Parameter 3 (🔢 Number): Value
Technical note: parameter 4 is an internal parameter handled by GDevelop.
Technical note: this action internal type (in GDevelop JSON) is
PhysicsCar::PhysicsCar::SetAcceleration.
Maximum speed
Change the maximum speed of the object.
See parameters & details
- Parameter 0: 👾 Object
- Parameter 1: 🧩 Behavior
- Parameter 2: 🟰 Operator
- Parameter 3 (🔢 Number): Value
Technical note: parameter 4 is an internal parameter handled by GDevelop.
Technical note: this action internal type (in GDevelop JSON) is
PhysicsCar::PhysicsCar::SetSpeedMax.
Steering angle
Change the steering angle of the object.
See parameters & details
- Parameter 0: 👾 Object
- Parameter 1: 🧩 Behavior
- Parameter 2: 🟰 Operator
- Parameter 3 (🔢 Number): Value
Technical note: parameter 4 is an internal parameter handled by GDevelop.
Technical note: this action internal type (in GDevelop JSON) is
PhysicsCar::PhysicsCar::SetSteeringAngle.
Maximum steering angle
Change the maximum steering angle of the object.
See parameters & details
- Parameter 0: 👾 Object
- Parameter 1: 🧩 Behavior
- Parameter 2: 🟰 Operator
- Parameter 3 (🔢 Number): Value
Technical note: parameter 4 is an internal parameter handled by GDevelop.
Technical note: this action internal type (in GDevelop JSON) is
PhysicsCar::PhysicsCar::SetSteeringAngleMax.
Sterring back speed
Change the sterring speed when turning back of the object.
See parameters & details
- Parameter 0: 👾 Object
- Parameter 1: 🧩 Behavior
- Parameter 2: 🟰 Operator
- Parameter 3 (🔢 Number): Value
Technical note: parameter 4 is an internal parameter handled by GDevelop.
Technical note: this action internal type (in GDevelop JSON) is
PhysicsCar::PhysicsCar::SetSteeringBackSpeed.
Steering speed
Change the steering speed of the object.
See parameters & details
- Parameter 0: 👾 Object
- Parameter 1: 🧩 Behavior
- Parameter 2: 🟰 Operator
- Parameter 3 (🔢 Number): Value
Technical note: parameter 4 is an internal parameter handled by GDevelop.
Technical note: this action internal type (in GDevelop JSON) is
PhysicsCar::PhysicsCar::SetSteeringSpeed.
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 & details
- Parameter 0: 👾 Object
- Parameter 1: 🧩 Behavior
- Parameter 2: 🟰 Operator
- Parameter 3 (🔢 Number): Value
Technical note: parameter 4 is an internal parameter handled by GDevelop.
Technical note: this action internal type (in GDevelop JSON) is
PhysicsCar::PhysicsCar::SetWheelGripRatio.
Simulate acceleration stick
Simulate an acceleration stick for a given axis force.
See parameters & details
- Parameter 0: 👾 Object
- Parameter 1: 🧩 Behavior
- Parameter 2 (🔢 Number): Stick force
Technical note: parameter 3 is an internal parameter handled by GDevelop.
Technical note: this action internal type (in GDevelop JSON) is
PhysicsCar::PhysicsCar::SimulateAccelerationStick.
Simulate down key press
Simulate a press of the down key.
See parameters & details
- Parameter 0: 👾 Object
- Parameter 1: 🧩 Behavior
Technical note: parameter 2 is an internal parameter handled by GDevelop.
Technical note: this action internal type (in GDevelop JSON) is
PhysicsCar::PhysicsCar::SimulateDownKey.
Simulate left key press
Simulate a press of the left key.
See parameters & details
- Parameter 0: 👾 Object
- Parameter 1: 🧩 Behavior
Technical note: parameter 2 is an internal parameter handled by GDevelop.
Technical note: this action internal type (in GDevelop JSON) is
PhysicsCar::PhysicsCar::SimulateLeftKey.
Simulate right key press
Simulate a press of the right key.
See parameters & details
- Parameter 0: 👾 Object
- Parameter 1: 🧩 Behavior
Technical note: parameter 2 is an internal parameter handled by GDevelop.
Technical note: this action internal type (in GDevelop JSON) is
PhysicsCar::PhysicsCar::SimulateRightKey.
Simulate steering stick
Simulate a steering stick for a given axis force.
See parameters & details
- Parameter 0: 👾 Object
- Parameter 1: 🧩 Behavior
- Parameter 2 (🔢 Number): Stick force
Technical note: parameter 3 is an internal parameter handled by GDevelop.
Technical note: this action internal type (in GDevelop JSON) is
PhysicsCar::PhysicsCar::SimulateSteeringStick.
Simulate up key press
Simulate a press of the up key.
See parameters & details
- Parameter 0: 👾 Object
- Parameter 1: 🧩 Behavior
Technical note: parameter 2 is an internal parameter handled by GDevelop.
Technical note: this action internal type (in GDevelop JSON) is
PhysicsCar::PhysicsCar::SimulateUpKey.
Behavior conditions
Acceleration
Compare the acceleration of the object.
See parameters & details
- Parameter 0: 👾 Object
- Parameter 1: 🧩 Behavior
- Parameter 2: 🟰 Relational operator
- Parameter 3 (🔢 Number): Value to compare
Technical note: parameter 4 is an internal parameter handled by GDevelop.
Technical note: this condition internal type (in GDevelop JSON) is
PhysicsCar::PhysicsCar::Acceleration.
Maximum speed
Compare the maximum speed of the object.
See parameters & details
- Parameter 0: 👾 Object
- Parameter 1: 🧩 Behavior
- Parameter 2: 🟰 Relational operator
- Parameter 3 (🔢 Number): Value to compare
Technical note: parameter 4 is an internal parameter handled by GDevelop.
Technical note: this condition internal type (in GDevelop JSON) is
PhysicsCar::PhysicsCar::SpeedMax.
Steering angle
Compare the steering angle of the object.
See parameters & details
- Parameter 0: 👾 Object
- Parameter 1: 🧩 Behavior
- Parameter 2: 🟰 Relational operator
- Parameter 3 (🔢 Number): Value to compare
Technical note: parameter 4 is an internal parameter handled by GDevelop.
Technical note: this condition internal type (in GDevelop JSON) is
PhysicsCar::PhysicsCar::SteeringAngle.
Maximum steering angle
Compare the maximum steering angle of the object.
See parameters & details
- Parameter 0: 👾 Object
- Parameter 1: 🧩 Behavior
- Parameter 2: 🟰 Relational operator
- Parameter 3 (🔢 Number): Value to compare
Technical note: parameter 4 is an internal parameter handled by GDevelop.
Technical note: this condition internal type (in GDevelop JSON) is
PhysicsCar::PhysicsCar::SteeringAngleMax.
Sterring back speed
Compare the sterring speed when turning back of the object.
See parameters & details
- Parameter 0: 👾 Object
- Parameter 1: 🧩 Behavior
- Parameter 2: 🟰 Relational operator
- Parameter 3 (🔢 Number): Value to compare
Technical note: parameter 4 is an internal parameter handled by GDevelop.
Technical note: this condition internal type (in GDevelop JSON) is
PhysicsCar::PhysicsCar::SteeringBackSpeed.
Steering speed
Compare the steering speed of the object.
See parameters & details
- Parameter 0: 👾 Object
- Parameter 1: 🧩 Behavior
- Parameter 2: 🟰 Relational operator
- Parameter 3 (🔢 Number): Value to compare
Technical note: parameter 4 is an internal parameter handled by GDevelop.
Technical note: this condition internal type (in GDevelop JSON) is
PhysicsCar::PhysicsCar::SteeringSpeed.
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 & details
- Parameter 0: 👾 Object
- Parameter 1: 🧩 Behavior
- Parameter 2: 🟰 Relational operator
- Parameter 3 (🔢 Number): Value to compare
Technical note: parameter 4 is an internal parameter handled by GDevelop.
Technical note: this condition internal type (in GDevelop JSON) is
PhysicsCar::PhysicsCar::WheelGripRatio.
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.