Jump to content

How to change camera.bouncingBehavior value in TypeScript


dingoogle
 Share

Recommended Posts

Hi guys,

I'm a TypeScript user. I saw the source code of ArcRotateCamera, _bouncingBehavior is private and bouncingBehavior is readonly. How to set the values of transitionDuration, lowerRadiusTransitionRange, upperRadiusTransitionRange, autoTransitionRange? 
FramingBehavior and AutoRotationBehavior as well.

Link to comment
Share on other sites

17 hours ago, Gijs said:

Hi, you can just set them on bouncingBehavior, those properties aren't read-only

Please check babylon.arcRotateCamera.ts, "bouncingBehavior" only has a getter.

And in babylon.d.ts file, class ArcRotateCamera, bouncingBehavior is marked by 'readonly'

readonly bouncingBehavior: Nullable<BouncingBehavior>;

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.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...