A Unity ID allows you to buy and/or subscribe to Unity products and services, shop in the Asset Store and participate in the Unity community.
Separate names with a comma.
I want to be able to point variables of a class (or in general) to another variable / function value. Whats the preferred way to accomplish this?...
Ok, so in the velocity case this is the way to handle it if you don't want to use new? Vector2 tmp; tmp = rigidBody2D.velocity; tmp.Set(0,5f);...
Having same problem when trying to set the velocity vector. obj.rigidbody2D.velocity.Set(this.maxSpeed , obj.rigidbody2D.velocity.y); But I...
Had similar problem where my player dropped x-velocity when hitting floor. Added material ( friction: 0.001 bounciness: 0) to relevant floor...
When adding one UI image, its native size is not respecting "pixels per unit" ( from sprite editor ) as when adding a sprite renderer. This make...
Thanks, I had misunderstood LayerMask, how it worked.
Is there any built-in functionality to filter on more than one layer or do I need to loop through the layers I want to be filtered out?
@theBrandonWu A more simple way to find layer number is layerNumber = Mathf.Log(yourLayer.value,2) , since LayeMask number is 2^layernumber =...
Also believes its strange that given you have a Layermask you can't get the Layer name or the Layer number with any simple function. Ive found...
Or am I supposed to use Raycast2D?
I've been searching the manual for a simple builtin line class , where you can store start point, end point etc.. Didn't find it so assuming its...
Thanks Matthew ,the link was perfect. Though, I thought that I couldn't rely on timestep for fixed update as well but works perfect . Now...
@shaderop: sure Im right now just a beginner of Unity that tries out things. But you're right and Ive had the feeling for several days now that I...
Maybe Im not clear enough. The Box2d is about how I calculate on things on paper. They use Impulse as well and however you want to explain it...
Thanks for the advice. Tried it still having same unreliable results :( void FixedUpdate(){ StartCoroutine (Calculate()); }
Of course thats one of the reasons I wanted to use unity, a working physics engine . Didn't understand if Box2D was a pointer for me to follow...
If the force was applied for 0s there wouldn't be an impulse.
I was getting results I didn't like on velocities etc so I made a simple example that I found on the forum somewhere. This example shows how non...
Matthew: yes but this still means is applied for period of time and I was asking for that time.
Yes it helps or simple F > m*g . But I still don't know for how long the force is applied => cant calculate Impulse If you how to find this delta...