pmndrs / ecctrl

🕹️ A floating rigibody character controller
MIT License
547 stars 64 forks source link

feature request: prop to disable follow cam collision lerping #101

Open hichemfantar opened 1 month ago

hichemfantar commented 1 month ago

i need the camera to instantly change position when an obstacle is detected.

ErdongChen-Andrew commented 1 month ago

Will consider adding it in the next version.

hichemfantar commented 1 month ago

Will consider adding it in the next version.

I believe i solved it locally but could use your opinion on my solution.

look forward to seeing this issue closed after you add a prop to disable lerp in the next release

image

hichemfantar commented 2 weeks ago

closed by https://github.com/pmndrs/ecctrl/commit/b958503c2b6fda324967664699ea0fde7fb4c457

hichemfantar commented 2 weeks ago

@ErdongChen-Andrew can you add the ability to pass a boolean value to skip the lerping to remove the performance waste with lerp?

basically if disableCamCollisionlerp is true then use position.set instead of position.lerp

hichemfantar commented 2 weeks ago

Look at this bug when i pass 999 in camCollisionSpeedMult

https://github.com/user-attachments/assets/6c423926-69df-4b92-a3bf-2a760ed318e2