Jump to content

Character "sliding" after engaging AppSpeed( )


PapaGwan
 Share

Recommended Posts

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!

Link to comment
Share on other sites

The units are in meters aren't they? An acceleration of 500 m/s ^ 2 would be ridiculously fast.

52t__nvidia.png nVidia 530M cpu.gif Intel Core i7 - 2.3Ghz 114229_30245_16_hardware_memory_ram_icon.png 8GB DDR3 RAM Windows7_Start.gif Windows 7 Ultimate (64x)

-----

IconVisualStudio16.png Visual Studio 2010 Ultimate google-Chrome.png Google Chrome PhotoshopLinkIndicator.png Creative Suite 5 icon28.gif FL Studio 10 MicrosoftOfficeLive.png Office 15

-----

csharp.png Expert cpp.png Professional lua_icon.png Expert BMX Programmer

-----

i-windows-live-messenger-2009.pngskype-icon16.pngaim_online.pnggmail.pngicon_48x48_prism-facebook.pngtunein-web.pngyahoo.giftwitter16.png

Link to comment
Share on other sites

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...

LE Version: 2.50 (Eventually)

Link to comment
Share on other sites

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)

52t__nvidia.png nVidia 530M cpu.gif Intel Core i7 - 2.3Ghz 114229_30245_16_hardware_memory_ram_icon.png 8GB DDR3 RAM Windows7_Start.gif Windows 7 Ultimate (64x)

-----

IconVisualStudio16.png Visual Studio 2010 Ultimate google-Chrome.png Google Chrome PhotoshopLinkIndicator.png Creative Suite 5 icon28.gif FL Studio 10 MicrosoftOfficeLive.png Office 15

-----

csharp.png Expert cpp.png Professional lua_icon.png Expert BMX Programmer

-----

i-windows-live-messenger-2009.pngskype-icon16.pngaim_online.pnggmail.pngicon_48x48_prism-facebook.pngtunein-web.pngyahoo.giftwitter16.png

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...