Skip to content

AcceleratedParticle acceleration change #1510

Answered by spydon
markohrastovec asked this question in Q&A
Discussion options

You must be logged in to vote

That it is final just means that it can't be set to a new reference, you can still change the values of the Vector2. Example:

particle.acceleration.setValues(10.0, 10.0);

(Not sure why that one is final, but not speed and position)

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by markohrastovec
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants