You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi there! First of all I wanted to say thanks for this, great work!
I'm using it for first person controls in combination with free mouse controls. In my scene are some HTML tooltips but the problem is, that the distanceFactor work not probably. I guess the problem is, that the capsulate collider does not turn with the camera and so doesn't the Raycaster (slope ray)?
Is it possible to fix that problem somehow? I would be appreciate for any help.
My Player:
<KeyboardControls map={keyboardMap}>
<Ecctrl
renderOrder={renderOrder}
canJump={false}
capsuleHalfHeight={0.6}
floatHeight={0.6}
position={position}
camInitDir={cameraPos} // Camera initial rotation direction (in radians)
camCollision={false} // disable camera collision detect (useless in FP mode)
camInitDis={-0.01} // camera intial position
camMinDis={-0.01} // camera zoom in the closest position
camFollowMult={1000} // give a big number here, so the camera follows the target (character) instantly
camLerpMult={1000} // give a big number here, so the camera lerp to the followCam position instantly
turnVelMultiplier={1} // Turning speed same as moving speed
dampingC={0.1}
autoBalance={false}
maxVelLimit={2.5}
jumpVel={0} // disable jump
floatingDis={1.5} // Set higher view-point
turnSpeed={100} // give it big turning speed to prevent turning wait time
mode={'CameraBasedMovement'}
/>
</KeyboardControls>
My Tooltip:
{hovered && (
<Html
center
position={tooltipPosition.toArray()}
distanceFactor={8}
style={{ pointerEvents: 'none' }}>
<Label title={'Lasercutter'} content={'Click to open'} />
</Html>
)}
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi there! First of all I wanted to say thanks for this, great work!
I'm using it for first person controls in combination with free mouse controls. In my scene are some HTML tooltips but the problem is, that the distanceFactor work not probably. I guess the problem is, that the capsulate collider does not turn with the camera and so doesn't the Raycaster (slope ray)?
Is it possible to fix that problem somehow? I would be appreciate for any help.
My Player:
My Tooltip:
distanceFactor_bug.mp4
Beta Was this translation helpful? Give feedback.
All reactions