# Physics

**URL:** https://forums.solar2d.com/c/physics/21.md

[Latest](https://forums.solar2d.com/latest.md) · [Categories](https://forums.solar2d.com/categories.md)

---

## [About the Physics category](https://forums.solar2d.com/t/about-the-physics-category/148948)

<div class="topic-metadata">

**Author:** [@system](https://forums.solar2d.com/u/system)\
**Replies:** 0

</div>

---

## [Rope joint and rotation](https://forums.solar2d.com/t/rope-joint-and-rotation/357500)

<div class="topic-metadata">

**Author:** [@neils](https://forums.solar2d.com/u/neils)\
**Replies:** 4\
**Last updated:** [July 28, 2025, 3:48pm UTC](https://forums.solar2d.com/t/rope-joint-and-rotation/357500 "2025-07-28T15:48:43Z")

</div>

In my game I created a static body (big green rectangle) and attached several dynamic bodies to it, using Pivot and Rope joints, as seen on this screenshot: Now if I rotate or move the static body (setting x, y and r…

---

## [Multiple Touch Joints Single Body](https://forums.solar2d.com/t/multiple-touch-joints-single-body/357442)

<div class="topic-metadata">

**Author:** [@TeamSoftware](https://forums.solar2d.com/u/TeamSoftware)\
**Replies:** 3\
**Last updated:** [June 29, 2025, 9:02pm UTC](https://forums.solar2d.com/t/multiple-touch-joints-single-body/357442 "2025-06-29T21:02:58Z")

</div>

I have searched high and low but cannot seem to find if this is even possible. Starting with the MultiPuck example, I want to be able to “grab” the “puck” with 2 touch joints and rotate it around and or position it on t…

---

## [Spawn bullet inside player that slows movement...?](https://forums.solar2d.com/t/spawn-bullet-inside-player-that-slows-movement/357018)

<div class="topic-metadata">

**Author:** [@nameless1](https://forums.solar2d.com/u/nameless1)\
**Replies:** 0\
**Last updated:** [November 25, 2024, 1:04pm UTC](https://forums.solar2d.com/t/spawn-bullet-inside-player-that-slows-movement/357018 "2024-11-25T13:04:04Z")

</div>

What is the combination of physics bodies to achieve this? Think of the bullet as mud spawning on the player’s tile, they have to move out of the bullet’s physics body to go back to normal movement. physics.addBody(play…

---

## [Physics bodies with delayed collision assignment not working](https://forums.solar2d.com/t/physics-bodies-with-delayed-collision-assignment-not-working/357003)

<div class="topic-metadata">

**Author:** [@nameless1](https://forums.solar2d.com/u/nameless1)\
**Replies:** 0\
**Last updated:** [November 21, 2024, 11:42am UTC](https://forums.solar2d.com/t/physics-bodies-with-delayed-collision-assignment-not-working/357003 "2024-11-21T11:42:17Z")

</div>

I am trying to make a shape object that spawns within the player turn into a physics body and trigger a collision with the player after a short delay. This isn’t working though. The player is having to exit and re-enter …

---

## [Single '3 untouching circles' physics body?](https://forums.solar2d.com/t/single-3-untouching-circles-physics-body/356944)

<div class="topic-metadata">

**Author:** [@nameless1](https://forums.solar2d.com/u/nameless1)\
**Replies:** 3\
**Last updated:** [November 6, 2024, 11:30pm UTC](https://forums.solar2d.com/t/single-3-untouching-circles-physics-body/356944 "2024-11-06T23:30:13Z")

</div>

a body that is 3 triangles not touching spaced out can be achieved modifying the multi body ex: local car = display.newImage( "car.png" ) local roofShape = { -20,-10, 20,-10, 20,10, -20,10 } local hoodShape = { 0,-35, 3…

---

## [How to get angle of rotation of physics body?](https://forums.solar2d.com/t/how-to-get-angle-of-rotation-of-physics-body/356940)

<div class="topic-metadata">

**Author:** [@nameless1](https://forums.solar2d.com/u/nameless1)\
**Replies:** 1\
**Last updated:** [November 4, 2024, 12:48am UTC](https://forums.solar2d.com/t/how-to-get-angle-of-rotation-of-physics-body/356940 "2024-11-04T00:48:25Z")

</div>

There’s a command for the velocity. x,y=object:getLinearVelocity() I can’t find anything for the angle though, just these: object:applyTorque()object:applyAngularImpulse() object.angularVelocity --overrides other rota…

---

## [Box2D 3.1 Ported to Solar2D for iOS and Android](https://forums.solar2d.com/t/box2d-3-1-ported-to-solar2d-for-ios-and-android/356843)

<div class="topic-metadata">

**Author:** [@laboladoapp](https://forums.solar2d.com/u/laboladoapp)\
**Replies:** 16\
**Last updated:** [October 24, 2024, 10:37am UTC](https://forums.solar2d.com/t/box2d-3-1-ported-to-solar2d-for-ios-and-android/356843 "2024-10-24T10:37:57Z")

</div>

We have successfully ported Box2D 3.1 to Solar2D, which now supports iOS, Android, osx, windows. Compared to Box2D v2, Box2D 3.1 has seen a significant performance improvement. You can download and test it here: Box2D 3…

---

## [box2d v2.3.0 vs box2d v3.1 in Solar2d Game Engine](https://forums.solar2d.com/t/box2d-v2-3-0-vs-box2d-v3-1-in-solar2d-game-engine/356804)

<div class="topic-metadata">

**Author:** [@laboladoapp](https://forums.solar2d.com/u/laboladoapp)\
**Replies:** 4\
**Last updated:** [September 6, 2024, 5:50am UTC](https://forums.solar2d.com/t/box2d-v2-3-0-vs-box2d-v3-1-in-solar2d-game-engine/356804 "2024-09-06T05:50:45Z")

</div>

We have successfully ported Box2D 3.1 to Solar2D(now supporting iOS and Android), with significant performance improvements(a few methods may differ slightly). We will test its stability in actual projects,…

---

## [I can't remove the physical body!](https://forums.solar2d.com/t/i-cant-remove-the-physical-body/356608)

<div class="topic-metadata">

**Author:** [@Chair6798](https://forums.solar2d.com/u/Chair6798)\
**Replies:** 2\
**Last updated:** [June 24, 2024, 9:23am UTC](https://forums.solar2d.com/t/i-cant-remove-the-physical-body/356608 "2024-06-24T09:23:29Z")

</div>

Please help me! I am trying to remove a physical body using physics.removeBody , but solar 2d returns an error - “cannot remove a physical body during collision processing”

---

## [Testing accelerometer](https://forums.solar2d.com/t/testing-accelerometer/356606)

<div class="topic-metadata">

**Author:** [@RIVALLLL](https://forums.solar2d.com/u/RIVALLLL)\
**Replies:** 3\
**Last updated:** [June 23, 2024, 8:28pm UTC](https://forums.solar2d.com/t/testing-accelerometer/356606 "2024-06-23T20:28:54Z")

</div>

Basically i tied the gravity of my game to an acelerometer event. Does anyone know a way to test the correct functionality with the simulator? Cause the “shake” command is not what I am searching for. Now im stuck wit…

---

## [Possible physics additions/feature request](https://forums.solar2d.com/t/possible-physics-additions-feature-request/342254)

<div class="topic-metadata">

**Author:** [@basiliogerman](https://forums.solar2d.com/u/basiliogerman)\
**Replies:** 15\
**Last updated:** [March 2, 2024, 3:11pm UTC](https://forums.solar2d.com/t/possible-physics-additions-feature-request/342254 "2024-03-02T15:11:55Z")

</div>

I’ve been following a buoyancy box2d tutorial (on C++) implementing it on Corona and things were going great, some small hiccups but found workarounds for them. But now my progress is completely blocked, since we don’t h…

---

## [An object passes through another at zero speed](https://forums.solar2d.com/t/an-object-passes-through-another-at-zero-speed/356129)

<div class="topic-metadata">

**Author:** [@IILLUMINAT](https://forums.solar2d.com/u/IILLUMINAT)\
**Replies:** 1\
**Last updated:** [November 16, 2023, 10:13pm UTC](https://forums.solar2d.com/t/an-object-passes-through-another-at-zero-speed/356129 "2023-11-16T22:13:11Z")

</div>

Hello, I need help. I created a ball and a platform, assigned a static body type for the platform, and a dynamic one for the ball. When the ball has any speed and crashes into the platform, it does not pass through it, b…

---

## [How to create hitboxes for objects?](https://forums.solar2d.com/t/how-to-create-hitboxes-for-objects/356097)

<div class="topic-metadata">

**Author:** [@IILLUMINAT](https://forums.solar2d.com/u/IILLUMINAT)\
**Replies:** 1\
**Last updated:** [October 31, 2023, 6:41am UTC](https://forums.solar2d.com/t/how-to-create-hitboxes-for-objects/356097 "2023-10-31T06:41:49Z")

</div>

Hello, I have a problem, there is an object and I want to set a rectangle hitbox for it, respectively, it should be tied to the object not in the center, but with an offset. I know that you can create a polygonal body, t…

---

## [PHYSICS Collision detection problem with Windows build and simulator...](https://forums.solar2d.com/t/physics-collision-detection-problem-with-windows-build-and-simulator/356014)

<div class="topic-metadata">

**Author:** [@d.mach](https://forums.solar2d.com/u/d.mach)\
**Replies:** 7\
**Last updated:** [September 28, 2023, 1:33pm UTC](https://forums.solar2d.com/t/physics-collision-detection-problem-with-windows-build-and-simulator/356014 "2023-09-28T13:33:25Z")

</div>

I have a tower defense game I want to build for Windows. It is a mobile game right now and working fine. BUT with the Solar2D Simulator and a final Windows version there are some strange collision problems. In detail: T…

---

## [Body A colliding with Body B to make Body A move to x, y](https://forums.solar2d.com/t/body-a-colliding-with-body-b-to-make-body-a-move-to-x-y/355965)

<div class="topic-metadata">

**Author:** [@Aiden0o](https://forums.solar2d.com/u/Aiden0o)\
**Replies:** 1\
**Last updated:** [September 11, 2023, 5:54pm UTC](https://forums.solar2d.com/t/body-a-colliding-with-body-b-to-make-body-a-move-to-x-y/355965 "2023-09-11T17:54:22Z")

</div>

I’m pretty new to Solar2D and its physics, and I want something to happen like this: Body A drops down, collides with Body B (a static platform) and then Body A goes to the contentcenterX and Y. How would I go about th…

---

## [PHYSICS HELP!!! - I'm not sure what is happening](https://forums.solar2d.com/t/physics-help-im-not-sure-what-is-happening/355648)

<div class="topic-metadata">

**Author:** [@mazurc](https://forums.solar2d.com/u/mazurc)\
**Replies:** 4\
**Last updated:** [May 25, 2023, 12:03pm UTC](https://forums.solar2d.com/t/physics-help-im-not-sure-what-is-happening/355648 "2023-05-25T12:03:35Z")

</div>

I’m working with a student who wants to make a plinko game. My thought was to generate the pegs, put them in a group, and position the group. Interestingly, when I reposition the group to the center of the screen, the …

---

## [Getting stuck in the wall](https://forums.solar2d.com/t/getting-stuck-in-the-wall/352428)

<div class="topic-metadata">

**Author:** [@svennd](https://forums.solar2d.com/u/svennd)\
**Replies:** 11\
**Last updated:** [February 15, 2023, 10:37pm UTC](https://forums.solar2d.com/t/getting-stuck-in-the-wall/352428 "2023-02-15T22:37:55Z")

</div>

Hey all, I’m playing around with the physics engine, but I came upon an issue I cannot seem to resolve; I spawn a bunch of circles (15), add a dynamic body to it, and give them a random velocity : (simplified code) gl…

---

## [Collision detection issue](https://forums.solar2d.com/t/collision-detection-issue/346731)

<div class="topic-metadata">

**Author:** [@swanandthakur1105](https://forums.solar2d.com/u/swanandthakur1105)\
**Replies:** 27\
**Last updated:** [August 29, 2022, 3:43am UTC](https://forums.solar2d.com/t/collision-detection-issue/346731 "2022-08-29T03:43:27Z")

</div>

Hello everyone, I am facing an issue with the detection of collision.My both objects are dynamic and what I want to do is just print a statement when the collision happens. Receiving help from you all is of great fortu…

---

## [Projectile hitting target](https://forums.solar2d.com/t/projectile-hitting-target/354953)

<div class="topic-metadata">

**Author:** [@Simontofront](https://forums.solar2d.com/u/Simontofront)\
**Replies:** 1\
**Last updated:** [August 21, 2022, 4:05pm UTC](https://forums.solar2d.com/t/projectile-hitting-target/354953 "2022-08-21T16:05:38Z")

</div>

OMG finally it works. It was very painful to implement :wink:

---

## [change in the shape of physical bodies](https://forums.solar2d.com/t/change-in-the-shape-of-physical-bodies/354773)

<div class="topic-metadata">

**Author:** [@chaaaaaach](https://forums.solar2d.com/u/chaaaaaach)\
**Replies:** 2\
**Last updated:** [June 4, 2022, 8:51pm UTC](https://forums.solar2d.com/t/change-in-the-shape-of-physical-bodies/354773 "2022-06-04T20:51:26Z")

</div>

hello, is it possible to change the shape of physical bodies without deleting and creating them again?

---

## [touch point coordinates](https://forums.solar2d.com/t/touch-point-coordinates/354774)

<div class="topic-metadata">

**Author:** [@chaaaaaach](https://forums.solar2d.com/u/chaaaaaach)\
**Replies:** 1\
**Last updated:** [June 4, 2022, 7:07pm UTC](https://forums.solar2d.com/t/touch-point-coordinates/354774 "2022-06-04T19:07:34Z")

</div>

is it possible to get the touch coordinate of two bodies?

---

## [Box2D Multi-Element Bodies](https://forums.solar2d.com/t/box2d-multi-element-bodies/354595)

<div class="topic-metadata">

**Author:** [@e.sobole](https://forums.solar2d.com/u/e.sobole)\
**Replies:** 6\
**Last updated:** [March 11, 2022, 6:49am UTC](https://forums.solar2d.com/t/box2d-multi-element-bodies/354595 "2022-03-11T06:49:18Z")

</div>

Hello. I found this gif showing a character composed of a circle which allows movement and a rectangle (above the circle) allowing objects to be pushed. I can’t understand how the two elements are linked to work like t…

---

## [Object get stuck at gaps](https://forums.solar2d.com/t/object-get-stuck-at-gaps/354479)

<div class="topic-metadata">

**Author:** [@gate120](https://forums.solar2d.com/u/gate120)\
**Replies:** 15\
**Last updated:** [February 18, 2022, 9:39pm UTC](https://forums.solar2d.com/t/object-get-stuck-at-gaps/354479 "2022-02-18T21:39:51Z")

</div>

I am playing with the Sticker-Knight-Platformer project. My purpose is: making my main character moving with constant speed(something like “3 pixels per frame”), regardless of its mass, so I use setLinearVelocity in en…

---

## [attempt to perform arithmetic on field 'x' (a nil value)](https://forums.solar2d.com/t/attempt-to-perform-arithmetic-on-field-x-a-nil-value/354350)

<div class="topic-metadata">

**Author:** [@steevemoore](https://forums.solar2d.com/u/steevemoore)\
**Replies:** 5\
**Last updated:** [January 9, 2022, 2:20am UTC](https://forums.solar2d.com/t/attempt-to-perform-arithmetic-on-field-x-a-nil-value/354350 "2022-01-09T02:20:56Z")

</div>

I try to repeat the same scene with a different picture I get the error message below, but when I leave blank in function scene:hide( event ) scene change but previous scene still on the screen …

---

## [Setting the object location limit](https://forums.solar2d.com/t/setting-the-object-location-limit/354303)

<div class="topic-metadata">

**Author:** [@morethanamotion](https://forums.solar2d.com/u/morethanamotion)\
**Replies:** 0\
**Last updated:** [December 16, 2021, 2:21am UTC](https://forums.solar2d.com/t/setting-the-object-location-limit/354303 "2021-12-16T02:21:31Z")

</div>

Hi. I made a circle in the center of the stage and add it to the physics whith a “dynamic” body. To prevent this in falling so deep, I have made a rectangle ground on the bottom and also add it to physics but whith a “st…

---

## [Box2D, speed and acceleration](https://forums.solar2d.com/t/box2d-speed-and-acceleration/354278)

<div class="topic-metadata">

**Author:** [@e.sobole](https://forums.solar2d.com/u/e.sobole)\
**Replies:** 2\
**Last updated:** [December 9, 2021, 8:23am UTC](https://forums.solar2d.com/t/box2d-speed-and-acceleration/354278 "2021-12-09T08:23:47Z")

</div>

Hi I have some question about Physics ! I wonder if it is possible to know the speed and the acceleration of an object and if it is possible to change them ! For example, I want to change the speed direction manually, …

---

## [Anomaly in behaviour of Friction](https://forums.solar2d.com/t/anomaly-in-behaviour-of-friction/354271)

<div class="topic-metadata">

**Author:** [@Chris\_31](https://forums.solar2d.com/u/Chris_31)\
**Replies:** 1\
**Last updated:** [December 4, 2021, 7:00pm UTC](https://forums.solar2d.com/t/anomaly-in-behaviour-of-friction/354271 "2021-12-04T19:00:36Z")

</div>

After some research and quite a bit of testing, my previous understanding was that friction is actually damping in the box2d physics engine for dynamic objects. But I tried to add friction on a static object and tried to…

---

## [Fling a Physics body to a specific point](https://forums.solar2d.com/t/fling-a-physics-body-to-a-specific-point/354173)

<div class="topic-metadata">

**Author:** [@ultimateprogramer](https://forums.solar2d.com/u/ultimateprogramer)\
**Replies:** 1\
**Last updated:** [November 9, 2021, 6:36pm UTC](https://forums.solar2d.com/t/fling-a-physics-body-to-a-specific-point/354173 "2021-11-09T18:36:00Z")

</div>

Hi guys, I was curious. I wanted to use physics to Fling a dynamic object toward a specific point (for instance when a tap happens - the object should be flung toward that point with physics simulation). I don’t want to…

---

## [Kinematic objects and friction](https://forums.solar2d.com/t/kinematic-objects-and-friction/353830)

<div class="topic-metadata">

**Author:** [@info142](https://forums.solar2d.com/u/info142)\
**Replies:** 1\
**Last updated:** [August 17, 2021, 6:48pm UTC](https://forums.solar2d.com/t/kinematic-objects-and-friction/353830 "2021-08-17T18:48:19Z")

</div>

By making some tests with the physics engine I’ve noticed that ‘kinematic’ objects don’t express any friction while colliding with dynamic objects. For example there is a moving platform which is a kinematic object and a…

[Next page](https://forums.solar2d.com/c/physics/21.md?page=1)
