Jump to content

Character Controller Properties


macklebee
 Share

Recommended Posts

Reviewing the inherent character controller and I do not see the ability to set certain properties.

I do not see commands to adjust:

- the stepheight

- the max slope

- the crouch height

 

All of these seem to be fixed values? Can we get the values that these are set to? Are these hardcoded just due to the recast/detour implementation?

 

And then there are some properties I can adjust via the inherent fps script that don't seem to make any difference:

- the player height

- the two extra parameters in the SetInput command

From the inherent fps player script, the command is shown as:

self.entity:SetInput(self.camRotation.y, playerMovement.z, playerMovement.x, jump , false, 1.0, 0.5, true)

but the documentation for SetInput only shows 6 parameters:

void SetInput(float angle, float move, float strafe=0, float jump=0, bool crouch=false, float maxaccel=1)

What are the two extra parameters? Is the player height also fixed due to recast/detour?

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

I was just about to ask you the same :)

 

No clue, but if I had to guess I think maybe something to do with making the controller work correctly with the terrain. I remember him talking about making terrain changes that broke the controller in certain situations. Maybe this tries to fix that but requires more processing if set to true?

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