Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: configure min, max, and step params in useControls params #108

Open
hichemfantar opened this issue Sep 28, 2024 · 0 comments
Open

Comments

@hichemfantar
Copy link

ecctrl/src/Ecctrl.tsx

Lines 190 to 275 in f5a5afe

{
maxVelLimit: {
value: maxVelLimit,
min: 0,
max: 10,
step: 0.01,
},
turnVelMultiplier: {
value: turnVelMultiplier,
min: 0,
max: 1,
step: 0.01,
},
turnSpeed: {
value: turnSpeed,
min: 5,
max: 30,
step: 0.1,
},
sprintMult: {
value: sprintMult,
min: 1,
max: 5,
step: 0.01,
},
jumpVel: {
value: jumpVel,
min: 0,
max: 10,
step: 0.01,
},
jumpForceToGroundMult: {
value: jumpForceToGroundMult,
min: 0,
max: 80,
step: 0.1,
},
slopJumpMult: {
value: slopJumpMult,
min: 0,
max: 1,
step: 0.01,
},
sprintJumpMult: {
value: sprintJumpMult,
min: 1,
max: 3,
step: 0.01,
},
airDragMultiplier: {
value: airDragMultiplier,
min: 0,
max: 1,
step: 0.01,
},
dragDampingC: {
value: dragDampingC,
min: 0,
max: 0.5,
step: 0.01,
},
accDeltaTime: {
value: accDeltaTime,
min: 0,
max: 50,
step: 1,
},
rejectVelMult: {
value: rejectVelMult,
min: 0,
max: 10,
step: 0.1,
},
moveImpulsePointY: {
value: moveImpulsePointY,
min: 0,
max: 3,
step: 0.1,
},
camFollowMult: {
value: camFollowMult,
min: 0,
max: 15,
step: 0.1,
},
},

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant