PapaGwan Posted July 5, 2010 Share Posted July 5, 2010 Hey all, I was happily developing away when I found that enabling lights in my app cause a major speed reduction. So I changed it all up to incorporate AppSpeed in all my time-sensitive variables and whatnot. However, there was an unexpected side effect. While before, my Character Controller moved happily when pressing the movement buttons, and stopped when you stopped pressing movement buttons, now he accelerates and decelerated very slowly. I've played with the maxacceleration argument with updating, trying ranges from 1-100 and it does not help. Anyone got a magic solution? I don't want my Character Controller to be playing on ice! Thanks! Quote Link to comment Share on other sites More sharing options...
macklebee Posted July 5, 2010 Share Posted July 5, 2010 an acceleration of 1-100 is very low... try between 300-500. Quote Win7 64bit / Intel i7-2600 CPU @ 3.9 GHz / 16 GB DDR3 / NVIDIA GeForce GTX 590 LE / 3DWS / BMX / Hexagon macklebee's channel Link to comment Share on other sites More sharing options...
PapaGwan Posted July 6, 2010 Author Share Posted July 6, 2010 Nice thanks that did it! Increased it to 500 but had to drop speed down to .000005 =P Thanks again! Quote Link to comment Share on other sites More sharing options...
TylerH Posted July 8, 2010 Share Posted July 8, 2010 The units are in meters aren't they? An acceleration of 500 m/s ^ 2 would be ridiculously fast. Quote nVidia 530M Intel Core i7 - 2.3Ghz 8GB DDR3 RAM Windows 7 Ultimate (64x)----- Visual Studio 2010 Ultimate Google Chrome Creative Suite 5 FL Studio 10 Office 15 ----- Expert Professional Expert BMX Programmer ----- Link to comment Share on other sites More sharing options...
Mumbles Posted July 8, 2010 Share Posted July 8, 2010 But we humans don't accelerate the same way vehicles do. Within about 1/2 a second, we're at our target speed (unless you're out of energy, or have a lard belly). So we just use 500 as a value to make it feel virtually instant. If the maximum speed is constrained to about 1 or 2 metres per second anyway, then we just reach that 1 or 2 m/s very, very quickly... Quote LE Version: 2.50 (Eventually) Link to comment Share on other sites More sharing options...
TylerH Posted July 9, 2010 Share Posted July 9, 2010 That makes sense. I just think that logically, if the player controller represents human motion, the parameters should be altered so that it is input in such a way. Most games simply have a speed value, where 700 is walking, 400 is out of breath, 900 is sprinting, etc. (using Source as an example) Quote nVidia 530M Intel Core i7 - 2.3Ghz 8GB DDR3 RAM Windows 7 Ultimate (64x)----- Visual Studio 2010 Ultimate Google Chrome Creative Suite 5 FL Studio 10 Office 15 ----- Expert Professional Expert BMX Programmer ----- Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.