Animation layer problem
Hello Please can anyone help me cause i haven't found an issu for my problem. I have a rotate animation wich is supposed to be played when i rotate my player, but when i rotate my player the animation...
View ArticleExclude code from SWF
Hi, I'm new to Unity and I'm using the Flash export. I want to have 1 swf file per level of my game. When I look at the list of exported classes in the swf, I can see a lot of classes in the packages...
View ArticleHow do I add gravity to an object?
**Hi there, I have got my hands on a script which allows me to pick up objects and move them...** private var pickObj: Transform = null; private var hit: RaycastHit; private var dist: float; private...
View ArticleWhat am I not getting about animation weight blending?
I've been having difficulty getting animation blending to work, so I've created a simple example. Can someone please explain what I'm doing wrong? Assume there are two animations on a character......
View ArticleAnimation events play for all animations when blending?
I'm playing 3 animations: //Prioritize the walking animation anim["idle"].layer = 9; anim["walk"].layer = 10; anim["sprint"].layer = 11; //Play all animations anim.Play("idle"); anim.Play("walk");...
View ArticleRigidbody and colliders, "weight" problem
Hello, I'll quickly describe my problem: the spaceship is a rigidbody in a box collider. When I apply a collider, the ship becomes "heavier" (I don't know if it's normal, but I accept it). I added a...
View ArticleFbx import skin
I am trying to export my rigged character to fbx and import it in unity. All I have is a mesh that is smooth-binded to a skeleton. If I import the maya binary file everything works fine, but when I...
View ArticleHow to rotate a rigidbody with limited angles and physics?
I need to rotate an object through input but limit the rotation angle. Also I need to put some weight at every corner of the plane and make it affect the plane's rotation. Right now I can only rotate...
View ArticleThe weight of textures is funny. why?
A 2048x2048 texture. In the editor they tell me the weight of my spritesheet: 16MB In the explorer they tell me the weight of my spritesheet: 2.92MB Why?
View ArticleNeed help with my gun movement script
So I have been following a tutorial series by ETeeski Tutorials, and I got stuck on fps 1.8. AKA scripting a basic gun with weight. This is the script: #pragma strict var cameraObject : GameObject; var...
View ArticleI can't set the bone weights at runtime
pieceMesh.boneWeights[0].weight0 = 0.0f; pieceMesh.boneWeights[0].weight1 = 1.0f; pieceMesh.boneWeights[0].weight2 = 0.0f; pieceMesh.boneWeights[0].weight3 = 0.0f;...
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 ArticleDoes Unity take GIF?
So I imported a 2048x2048 GIF texture that weighs about 45Kb, but Unity "compressed" it to 2.7Mb, so I'm guessing that it compressed the image to JPG or something? Does Unity take GIF textures at all?...
View ArticleSpeed = 11 meters /s plane is 110 meters should take me 10 seconds but it dosn't
It all in the title my car is travelling at 11 meters /s and the road is 110 meters long well at lest its 110 along the x axis and I haven't changed anything in the settings but its taking a long time...
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 do I make an object with uneven weight?
I'm trying to make an object where one side is heavier that the other. It's a lawn dart, but for an easier to understand example, imagine a weight lifting bar with more weight on one side than the...
View ArticleColor different Mesh vertices
I have a human mesh connected with an fbx animation file using Humanoid Mecanim. What I want to do is how to know the vertex groups, meaning the group of different vertices assigned to different limbs....
View ArticleCalculate weighted mean based on direction
Technical version: I need to calculate the weighted mean of a set of points, using an arbitrarily decided 'forward' direction. The more 'forward' a point is from the rest of the group, the more weight...
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 ArticleHow do I smoothly shift between Layer Weights
I'm trying to shift between my character's default layer to another layer where his arms are masked smoothly so it looks like putting them out to hold a gun. public bool gun; void Update () { if (gun)...
View Article