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

Split angularSensibiliy into X and Y for additional functionality #683

Merged
merged 3 commits into from
Sep 8, 2015

Conversation

Remwrath
Copy link
Contributor

@Remwrath Remwrath commented Sep 6, 2015

redid change in type script to allow flipping of rotation for individual or both axis and ability to have different rotation speeds for the different axis.

@deltakosh
Copy link
Contributor

Before validating this PR, we need to keep angularSensibility as well. It could just be a set/get that updates your values. We cannot remove it because of backward compatibility

@Remwrath
Copy link
Contributor Author

Remwrath commented Sep 6, 2015

so angularSensibility should be private with get and set so on set it will use setter to set angularSensibilityX and angularSensibilityY but on get im not sure what should happen for example if you get angularSensibility when angularSensibilityX and angularSensibilityY are different values then which do you return or should you set them the same as angularSensibility and then return that, which will work but may seem confusing to a deveoper?

@Remwrath
Copy link
Contributor Author

Remwrath commented Sep 6, 2015

Also is there a way to mark angularSensibility as depreciated to it can be removed at a later stage?

@deltakosh
Copy link
Contributor

get (as property get in typescript) should return the biggest for instance and should log an warning as deprecated.
set should affect both to same value

@Remwrath
Copy link
Contributor Author

Remwrath commented Sep 7, 2015

sorry for all the back and forth, hope ive covered your requests now

@deltakosh
Copy link
Contributor

Good to go :)

deltakosh added a commit that referenced this pull request Sep 8, 2015
Split angularSensibiliy into X and Y for additional functionality
@deltakosh deltakosh merged commit dc93c91 into BabylonJS:master Sep 8, 2015
@Remwrath Remwrath deleted the develop branch September 8, 2015 18:37
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

Successfully merging this pull request may close these issues.

2 participants