Object scale effects to speed
I have FirstBall with CircleCollider2d and Rigidbody2d. I added a child to my object which have only a CircleCollider2d component. I have another SecondBall with CircleCollider2d and Rigidbody2d. Both...
View ArticleAttaching a "Mass" variable to all or most gameObjects and how to access them
So I'm making a simple game where you move around and eat things smaller than you. I would like to attach a simple variable to game objects to give them a "mass" and check to see that if they are...
View ArticleCan I control mass density of colliders in a rigidbody independent of their...
I am building a 3D rigidbody physics simulation with modular attachable components. I have a single rigidbody on a parent object, and as I attach or remove modules I add to or subtract from the parent...
View ArticleC# creating an array that holds coordinate points
I am working on a C# script for use with unity that will act as a gravity organizer (my term). For this I want the script to locate all objects that have a mass (a float that will assigned) and store...
View ArticleCan you calculate approximate Speed of an object knowing the distance it...
If you know the weight of both objects, and the distance an at rest moved (object "a") after being struck by the other object (object"b"), and the approximate friction (an ice covered road), Could you...
View ArticleMass apply bake into position to all animations
Hello, I was wondering if there was any way to apply bake to position (rotation, x, z, and y axis) to every animation on a model. After importing 20 models each with 30 animations going one by one...
View Articleright value of gravity of multiple objects standing on eachothers
I have multiple gameObjects with collider and rigidbodies and when I put some value of gravity the bottom ones get squeezed. I need to know what is the right value to put in mass and gravity so they...
View ArticleAdding Collider2D changed physics on race car.How to compensate for mass loss...
AS YOU CAN SEE THE PIVOT IS IN THE BACK ,DOWN, BUT THE CAR BEHAVES LIKE ITS MORE IN THE MIDDLE,(PUTTING PIVOT TO MIDDLE NOR TO THE TOP HELPS),I TRIED ADDING COUNTER WEIGHT OR NARROW COLLIDERS BUT STILL...
View ArticleModifying mass of all objects
Hello! I am having a rather strange problem at the moment with one of my Unity programs. The issue is that I need to define mass in terms of kinetic energy, so whenever a script or physics function...
View ArticleHow to add a script to an object via another script
Hello! I am having a rather strange problem at the moment with one of my Unity programs. The issue is that I need to define mass in terms of kinetic energy, so whenever a script or physics function...
View Articleshrinking objects
So this script makes the gameobject shrink at a rate i chose, along with the mass. but the problem is no matter how much mass i give an object, it will loose mass at the same speed. so like if i gave...
View Articleshrinking according to mass
so this script shrinks an at a constant rate depending on mass. so when an object enters the trigger collider, if it has more mass than this object, then this object will beguin shrinking at a rate...
View ArticleGrow objects
This script makes objects shrink. how can i make it so it makes objects grow instead? private Rigidbody rb; private float originalMass; private Vector3 originalScale; private float counter; public...
View Articleshrinking mass and scale
with this script how can i make it so that the objects scale shrinks at the same rate as the mass shrinks, so the scale will reach 0 at the same time the mass does? float scale; private Rigidbody rb;...
View ArticleStop Rigidbody From Being Pushed By Another But Still Move With Physics
Hi, What is the "*Unity correct*" way to move an object with physics but make it unmovable to identical objects in the scene? For instance, if a character is moved by physics and can move around...
View ArticleRigidbodies colliding with each other ignore mass, details inside.
I am using a unity script that lets me pick up an object and walk around with it, and it follows my mouse, if you've ever played Amnesia or Penumbra you know exactly what I'm talking about. When I pick...
View ArticleCollider shapes influence simulation even when not colliding.
If I enable or disable a collider, the rigidbody behaves completely different. Even if the collider is never colliding. I already found out that adding colliders changes Center-Of-Mass and the...
View ArticlePlayers slips on slopes for no reason.
My player's avatar continuously slips on a slope slowly in a random direction once I apply a AddForce. The avatar has a Rigidbody and a capsule collider. I have tried to use a Physics Material and...
View ArticlePhysics 2D disable collision bouncyness
Hello, I am using Unity Physics 2D for my current use-case. I want to build up a tower made of standard boxes. The box has a standard BoxCollider2D and a Rigidbody2D with standard values. There is also...
View Articleusing mass spring system in unity
Hi, I have a question and I would be appreciated if you help me. I wanted to make an elastic surface and deform it when I want. I have made a surface by some Mass springs (in fact I just created some...
View Article