Making buoyancy script not mass based
Hi everyone. So I'm using this buoyancy script from the community shader project's ocean. As you can see it references the ocean and gets the water level where my object is to help calculate the...
View ArticleHow to develop newtons second law in unity 3d
I want to develop newtons second law , here i chosen one example please check the below video http://www.youtube.com/watch?v=0LnbyjOyEQ8 same video i want to develop in unity 3d how can i proceed?
View ArticleHow to fix "Actor::updateMassFromShapes: Can't compute mass from shapes: must...
I have a client/server game which has spaceships flying about a scene. Every now and again my server will issue the following error **Actor::updateMassFromShapes: Can't compute mass from shapes: must...
View ArticleAddTorque but don't rotate around centre of mass?
Hello. I change the centre of mass of my car to -1.5 on start so that it's stable and doesn't tip over when you brake. But the problem with this is when I add torque to do flips it rotates around the...
View ArticleVehicle Colliders in different gravities
I am trying to calulate the changes that need to be made to the Wheel colliders of a vehicle depending on the amount of gravity. When I change `Physics.Gravity` to larger values my car begins to move...
View ArticleIs there a way to mass produce "scenes"
Hi All, Total Unity noob here - sorry. I have however read alot about it and am at the level of being able to understand about how to create a scene/level/world... My question is:- is there a simple...
View ArticleMovement with NavMeshAgent pushes RigidBody
Hi all. I've started using the navmeshagent and have come across something I can't seem to fix. It seems that if an object is moving using the navmeshagent, it will push rigidbodies regardless of their...
View ArticleRigidbodies push other rigdidbodies
I am trying to set it up so that my character which has a rigidbody will not push a wall, which is also a rigid body. I tried using, Mass, but I found that more Mass ≠more Weight. Is there a way to...
View ArticleRigidbody mass not updating in inspector after calling SetDensity
So, I have a prefab with a Rigidbody and a C# script attached. The prefab has a cube child object with a collider on it. The prefab is instantiated at runtime when the user clicks and the user can...
View ArticleAdjusting unity particle / cubes properties
Is there any way to adjust unities particle to simulate "real world"? I am looking for the following for starters: - Can I give a real world mass to the particle (and have real life gravity of 9.8...
View ArticleCan'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 ArticleBox2D force on object?
Hello, im wondering is there is a way for Unity's 2D physics engine to provide what forces are affecting a rigidbody2D each physics tick. What i especially want is to get access to how much weight is...
View ArticleScale Issues. Heights, Mass and Cameras
I'm very into creating realistic simulations in Unity with first person cameras. I find the arbitrary scaling often used creates a big mess. I have read that 1 unit is 1 meter. How is mass measured? If...
View ArticleKeep up with falling object - Touches
Hello, I am working on a game where objects fall from the top of the screen. I have them working with raycasting. The game is 2D. The issue I am having is if they are going too fast, even if you tap on...
View ArticleCalculate objects' mass based on density and volume
Hello, I'm trying to calculate objects' masses based on density and volume. Imagine I have a Box2DSprite and it is 1,1 (x,y), I could use mass=density*Box2D.localScale.x*Box2D.localScale.y and...
View ArticleEditing mass of gameObject with slider GUI?
I am currently making a physics lab simulator. I want the user to be able to select the mass of a game object called "HangingMass" (in the Inspector) by the use of a GUI slider. The HangingMass...
View ArticleCalculating rigidbody mass
Hey so im trying to realistically calculate the mass of a rigidbody according o this post --> http://answers.unity3d.com/questions/177563/what-unit-is-rigidbody-mass-based-on.html a rigidbodys mass...
View ArticleHow does wheelcollider mass factor into rigidbody mass?
Let's say I have a car with a rigidbody mass of 1500 and four wheelcolliders with a mass of 20 each. Is the mass then, of the entire car, 1580, or is it still 1500, but the car without the...
View Articlecalculate force on impact
im trying to calculate the force an object gets hit by when i swing a bat at it or throw it against the wall im not sure why this dosent work as it has worked in the past for me void...
View Article