Discussions
Sign In
Forum rules
- please read before posting.
FirstPersonCamera.cs issue with the Speed parameter for Built
nRedux
August 2018
edited August 2018
in
Engine development
After trying to adjust the speed of the head bob, I noticed it has no effect. I browsed the source and indeed the bobbingSpeed variable is unused aside from the editor script which modifies it.
Comments
nRedux
August 2018
edited August 2018
Probably the intended behaviour:
public float GetHeadBobSpeed ()
{
if (player != null && player.IsGrounded ())
{
return Mathf.Abs (player.GetMoveSpeed () * bobbingSpeed);
}
return 0f;
}
ChrisIceBox
August 2018
Quite right - I'll look into it.
Sign In
or
Register
to comment.
Howdy, Stranger!
It looks like you're new here. If you want to get involved, click one of these buttons!
Sign In
Register
Quick Links
Categories
Recent Discussions
Categories
12.6K
All Categories
66
Official news
1.5K
Engine development
10.6K
Technical Q&A
337
Games showcase
151
Extending the editor
229
Adventure talk
Welcome to the official forum for Adventure Creator.
Forum rules
Main website
Store page
Community wiki
Community Discord
Powered by Vanilla
Comments
public float GetHeadBobSpeed ()