Reputation
2,777
Top tag
Next privilege 3,000 Rep.
Cast close & reopen votes
Badges
1 10 23
Newest
 Quorum
Impact
~108k people reached

2d
awarded  Quorum
Jul
27
revised Get the current time of animation using script Unity3d
added 12 characters in body
Jul
27
comment Get the current time of animation using script Unity3d
You have to reference the actual animation instance. Use currentState.clip.length;
Jul
27
comment Get the current time of animation using script Unity3d
Sorry, I was still editing the question after I posted it.
Jul
27
revised Get the current time of animation using script Unity3d
added 215 characters in body
Jul
27
answered Get the current time of animation using script Unity3d
Jul
24
comment How to load scene after a set delay?
I haven't tested this myself, so you may be right, this could be the default behaviour. Possibly try the code I added to the answer.
Jul
24
revised How to load scene after a set delay?
added 685 characters in body
Jul
24
comment How to load scene after a set delay?
Is it possible there is another script that is loading the level without delay somewhere?
Jul
24
comment How to load scene after a set delay?
That is pretty weird, your scene shouldn't be loaded until after the splash screen is displayed. In fact, the script in your starting scene will only fire off the Start() function once the splash is done.
Jul
24
answered How to load scene after a set delay?
Jul
24
comment How to make a 2d game using java netbeans?
No offense, but it sounds like you have been blaming your professor for your lack of understanding of the topic, and now you are so far behind that you are in a panic. That being said, I would suggest you schedule a sit down with your prof, and go over some topics that you need clarifications on.
Jul
23
comment handle mousedrag() for two different game objects individually in 2D environment
If you set the new colliders to Triggers, it will not collide with your existing physics objects. Alternatively, you can assign your colliders to a layer, and then edit the physics2d properties of your project, so that those two layers do not collide with each other.
Jul
23
comment handle mousedrag() for two different game objects individually in 2D environment
Create a blank gameObject and add a collider to it ;)
Jul
21
comment Box2D collision between dynamic body
I think what you want to do is set your Body isKinematic to true.
Jul
17
comment handle mousedrag() for two different game objects individually in 2D environment
@SantoshYadav Can you give me more information as to why you cannot do this?
Jul
16
answered handle mousedrag() for two different game objects individually in 2D environment
Jul
15
answered Best collision algorithm for Axis Aligned Bouding Boxes
Jul
15
comment Unity a ball bounce inside a sphere sometime will penetrate and drop outside
More than likely, it passes right through your collider because it is going too fast. Either force it to maintain a velocity that will not allow it to exit the collider, or change your collision algorithm to be Continuous (CCD). CCD collision checks are more expensive, but work much better.
Jul
15
answered Rigidbody on UV animations