Can't change Rigidbody2D mass
It seems that in Unity 4.3 you can't set the mass of a Rigidbody2D at runtime - it just reverts to it's original value. I've tested this and also found a [forum thread][1] quoting the same problem.....
View ArticleChaging rigidbody2d.mass
I can't seem to change the mass of a 2d rigid body at run time using rigidbody2d.mass, although I am able to change it using the inspector. I've searched unity answers but all I could find was a...
View ArticleMass place grass on a specific texture only?
Hello, I'm wondering, is there a way in Unity to mass place grass somehow on a specific texture only, and no grass on other textures? I have a mountain-like scene and it would be very time consuming to...
View ArticleSimulate gravity on rigidbody
Hi, I want to simulate gravity for a rigidbody, I have 2 separate objects, each one have the same mass, one is set to "use gravity" (rigidbody) and the other isn't. On the object that doesn't use...
View ArticleCentre of Gravity
I have a tank that i am controlling in game with collider and rigid body attached When it is moved to the edge of a platform it should fall off when the centre of the tank is over the edge. But it...
View ArticleRigidbody2D isKinematic effect by growing mass to huge number ?
Hey Guys, I a GameObject that has a Rigidbody2D on it and I want to be able to jump on it without it moves. So first thought I have was like, I'll check isKinematic, but then I realised that my...
View Article"You should strive to keep mass close to 0.1..." Why?
The [documentation] [1] in Unity states: ***"You should strive to keep mass close to 0.1 and never more than 10. Large masses make physics simulation unstable."*** Someone in [this][2] thread, used a...
View ArticleMake a GameObject more stable in Unity2D
Hi, I wanted to make a sort of 2D runner in unity and this game to be fast (I mean like sonic for example). But the problem is that the player is overturning. I would like to make it more stable but...
View ArticleConstantly checking OnCollisionStay
This does not work unless the rigidbody is actively moving. It is like it is not tested contantly. How can that be done - and how should i fix the problem? void OnCollisionStay (Collision collision) {...
View ArticlerigidBody2D.mass not changing when I alter it in C#
Hi All, float fSomeRandomFloat = 1.23F; rigidBody2D.mass = fSomeRandomFloat; ... does not work in C#. I cannot find another way to do this. Please skip this question if you only want to say, "just set...
View Articlerigid body mass doesnt affect my object
I am making a box and a grid, i am letting the box fall into the grid, but no matter what value i put in the mass the box always falls the same. shoulnt fall faster with more mass? thanks.
View ArticleAdjust stiffness of suspension of a Wheel Joint2D
I have a wheel joint in my scene which is attached to a car, this all works perfectly, but the suspension is always bottomed out-due to the mass of the cars body. I can get around this, but it requires...
View ArticleMass place prefabs
I made a prefab of a cactus which contains a collider, rigidbody, and a script. I want this prefab to be mass placed all over the map (about 2000) But when i cant use it as a tree in the terrain...
View ArticleCan not change some values in the inspector
An example is the mass of a rigid body 2D. I change it in the editor, say from 1 to 10, and when I test it out in runtime, there is no change in how the object behaves. Once in runtime, if I do...
View ArticleMass tree placement on terrains
Hi, COuld anyone recommend a easy or efficient way for Mass tree placement on terrains, I have a few terrains where I want to cover in forest, how could that be done with minimal loss of performance?...
View ArticleHow to calculate COM from COP of Human model?
Hi all, I have a human model and I have to calculate the change of his COM (centre of mass) from change of his COP on the feet (Centre of Pressure). I have some equations and some sensors thanks to I...
View ArticleRigidbody - Slowly flies?
For some reason my player slowly goes up in the air like a baloon at about 0.05 per second... If I put the mass any higher than 1 then it slowly goes down by 0.05 per second... So if the player walks...
View ArticleCompare rigidbody.centerofMass with go.rigidbody.centerofMass ?
hello, sorry about my English. First, this is my code: ---------- Rigidbody rigid; void start() { rigid = gameObject.AddComponent(); rigid.centerOfMass = Vector3.zero; } ---------- void Start() {...
View ArticleHow to Make a rigidbody fall straight away?
I have a character in a game and when he goes over the edge the character is meant to fall to the bottom of a pit. It all works but there seems to be a slight delay before the character actually starts...
View ArticleChange the mesh of a gameObject
That seems to be a dull question, but it isn't obvious to me. I was making a model in Blender while my friend was coding, so we worked together. He has attached multiple scripts to our Main Character,...
View Article