Skip to content

Commit b11c40b

Browse files
update readme
1 parent 08f35ab commit b11c40b

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ecctrl",
3-
"version": "1.0.35",
3+
"version": "1.0.36",
44
"author": "Erdong Chen",
55
"license": "MIT",
66
"description": "A floating rigibody character controller for R3F",

readme.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,11 +121,13 @@ EcctrlProps: {
121121
capsuleHalfHeight: 0.35, // Half-height of the character capsule
122122
capsuleRadius: 0.3, // Radius of the character capsule
123123
floatHeight: 0.3, // Height of the character when floating
124+
characterInitDir: 0, // Character initial facing direction (in rad)
124125
followLight: false, // Enable follow light mode
125126
// Follow camera setups
126127
camInitDis: -5, // Initial camera distance
127128
camMaxDis: -7, // Maximum camera distance
128129
camMinDis: -0.7, // Minimum camera distance
130+
camInitDir: 0, // Camera initial position direction (in rad)
129131
// Base control setups
130132
maxVelLimit: 2.5, // Maximum velocity limit
131133
turnVelMultiplier: 0.2, // Turn velocity multiplier
@@ -152,7 +154,7 @@ EcctrlProps: {
152154
// Slope Ray setups
153155
showSlopeRayOrigin: false, // Show slope ray origin
154156
slopeMaxAngle = 1, // in rad, the max walkable slope angle
155-
slopeRayOriginOffest: capsuleRadius - 0.02, // Slope ray origin offset
157+
slopeRayOriginOffest: capsuleRadius - 0.03, // Slope ray origin offset
156158
slopeRayLength: capsuleRadius + 3, // Slope ray length
157159
slopeRayDir: { x: 0, y: -1, z: 0 }, // Slope ray direction
158160
slopeUpExtraForce: 0.1, // Slope up extra force

0 commit comments

Comments
 (0)