All Questions
22
questions
0
votes
0
answers
15
views
"Sticking" occurs in collision constraint solution
Two rectangles collide, use the following formula to calculate:
$$
J = \begin{vmatrix}
J_{1} \\
J_{2} \\
J_{3} \\
\end{vmatrix}
$$
$$
J_{n} = \begin{vmatrix}
\overrightarrow{n} & \overrightarrow{...
0
votes
0
answers
22
views
Where is the friction coming from in this simple setup?
I'm creating a simple implementation of the classic cart and pole balancing control problem. I'd like to have a 2D interface with the cart and pendulum controlled by the Unity physics, so that I can ...
0
votes
0
answers
52
views
Why are global constraints so ineffective?
There are two objects here, each with 3 constraint points.
I use formula:
$$
\lambda=(JM^{-1}J^{T})^{-1}(-JV-b)
$$
$$
\Delta V=M^{-1}J^{T}\lambda \
$$
I put the information of the three constraint ...
1
vote
1
answer
51
views
Is it a good idea to solve movement of solid bodies with restrictions (e.g. connections) by shifting tangentially and projecting normally in phase sp?
I am trying to code my first 2d game with physics (in python), and so far my physics simulation works with solid bodies. I want to add connections, for example, so the player can rotate an arm and ...
2
votes
0
answers
63
views
How to connect particles to rigid bodies in LiquidFun?
In vanilla Box2D various types of Joints can be used to connect two rigid bodies together. The LiquidFun extension brings the Particle Module, but I was unable to find a way to connect a particle/...
0
votes
1
answer
44
views
How do I contain two rigid bodies with a relative position, while ignoring rotation?
This question is physics engine agnostic (could be Box2D, Bullet, whatever).
I have two rigid bodies, each with a single fixture/shape. One is a sphere, and one is a box.
I'd like the box to rotate ...
0
votes
0
answers
131
views
In Unity what is the best way of making a robot that has several legs connected with joints move?
Here's how the robot looks like in the scene:
Here's its structure as an object:
LegX2 is connected to LegX1 with a HingeJoint. LegX1 is connected to Platform with another hinge joint. These two ...
1
vote
1
answer
686
views
Configurable Joint rotation doesn't seem to respect mass difference
The Problem
I've run into a physics issue in my Unity project, and have put together a simple example scene to illustrate it. Hopefully someone will be able to tell me if I'm doing something wrong.
In ...
3
votes
0
answers
163
views
How do you compute for angular spring physics for physics joints in game engines?
I'm working on fixing Godot's physics joints. Currently, it uses Euler angles and it doesn't help me in building active ragdolls for my game. I heard that using quaternions is the way to go. So I ...
0
votes
0
answers
252
views
Prevent velocity from being increased by fixed joints
I am currently working on a Unity project that makes use of fixed joints. When connecting two GameObjects using a fixed joint, I noticed a behavior where the gameobject that becomes part of a fixed ...
0
votes
0
answers
574
views
How can I make a wheel spin more freely using joints in Unity?
I am making a simulation physics based skateboard game in Unity3D. I want wheels that will roll freely based on the physics applied to them without any animation or drive forces. I achieved this ...
0
votes
1
answer
1k
views
Move an object with other objects connected (via joints) the right way
What is the best way to move an object with other objects connected to it via joints?
Let's assume we have the following setup:
A player that can move on the x and the z axis
"Normally configured" ...
0
votes
1
answer
135
views
Integrating collisions and constraints
Long story short, I had to roll my own physics engine for my game because box2D and similar packages weren't compatible with the portal based layouts in my game.
So I've made a constraint system and ...
0
votes
1
answer
148
views
How to Create Snakelike Objects
I am working on a 2D action platformer in Python, though my question is a general one about creating snakelike objects which move in a variety of patterns.
I have noticed this kind of object in many ...
1
vote
0
answers
650
views
How to add friction to Unity HingeJoint?
I attach a rigidbody to a HingeJoint in Unity.
It's attached no at the the center of an anchor of a joint.
To stop it from falling I set Use Motor = true, ...