48,121 reputation
9103187
bio website byte56.com
location Portland, OR
age 31
visits member for 3 years, 2 months
seen 7 hours ago

I work full time at a big software company, when I'm not doing that I'm developing games. I keep a development blog at www.byte56.com and you can follow me on twitter.

I've created a course with Lynda.com to teach advanced scripting with the Unity 3D engine, check it out!


Jul
11
comment Freeze Player position temporarily?
Well, we're beyond the scope of the original question now. I suggest you poke around a little more, search for an answer. Try some things, like adding a rigidbody to the object. Additionally, you can try answering some questions, or asking more questions on the site to get enough rep to join chat. Then you can work out all the details there.
Jul
11
comment Freeze Player position temporarily?
I don't use javascript, but it's just like setting any other variable. You can see the in the example above where I create linearBackup to store the value of the velocity, then zero it out. The backup copy remains and is re-used later on. In javascript it would be something like var backupVec : Vector3 = currentVelocity; Where currentVelocity is whatever you find in your controller, I'm not sure what it's actually called.
Jul
11
comment Freeze Player position temporarily?
No worries. So the problem you're having is that the character continues to move. It's moving because it either has velocity, or input commands changing the position. For input commands it's easy to just have a bool set for the duration of the freeze that tells the controller not to accept input. For velocity you'll want to save the velocity to a back up variable, then zero out the variable that's being used to update the position (meaning the position won't change anymore), wait for a bit, then restore the velocity so the position can be updated again as before the freeze.
Jul
11
comment Freeze Player position temporarily?
Well, if you've modified the Third Person Controller, why not modify it further to do something similar to the above? Save the velocities, wait a few seconds, then reapply them.
Jul
11
comment Freeze Player position temporarily?
Sorry, I just re-read your question, are you not using a rigid body at all? This will work even if there's a rigid body and a character controller.
Jul
11
answered Freeze Player position temporarily?
Jul
9
revised How to add a constant horizontal force just like gravity?
edited title
Jul
9
comment How to add a constant horizontal force just like gravity?
Describe a bit more what's happening. Are your Debug statements being executed? Is the object being affected at all? Have you tried some visual debugging to ensure you're applying the force in the correct direction?
Jul
7
awarded  Guru
Jul
2
comment How can I work on a game that I don't like?
I suggest you try: productivity.stackexchange.com and these related questions: gamedev.stackexchange.com/questions/17916 gamedev.stackexchange.com/questions/85
Jul
2
awarded  Curious
Jul
2
awarded  Enlightened
Jul
2
awarded  Nice Answer
Jul
1
revised Does LibGDX abstract OpenGL ES away or can I still use my OpenGL ES knowledge?
To the point.
Jun
29
awarded  Popular Question
Jun
28
answered Animation Texture spread out when animation on 3dsMax
Jun
28
revised Farseer: How can I create a body with a hole in the middle
edited title
Jun
27
comment How can I make a power-up spawn system semi-random?
At least include a short game play video instead of a link to their home page which doesn't have anything on the page showing what kind of game it is.
Jun
27
revised How can I make a power-up spawn system semi-random?
deleted 28 characters in body
Jun
27
comment Java Game: Fullscreen images
Google it. I think explaining it in a comment is silly.