Closed andrewwilcox closed 11 years ago
That can be done, but how do we know when to unfreeze it? On Mar 31, 2013 7:27 PM, "andrewwilcox" notifications@github.com wrote:
if I freeze an object's position please make it so it cannot be adjusted mental.
Example:
if (event.lift && rigidbody.constraints.freezeY == false){ //lift.script }
— Reply to this email directly or view it on GitHubhttps://github.com/majora2007/CerebralAcademy/issues/18 .
other code can check that, the best example I have is the block used to cross the gap, since players wouldn't have the timing to jump when it was up I want it to lock after one lift so they have enough time, if they lift it again it becomes unplayable as they can no longer jump up on it.
On further thought, I am not 100% sure how to handle this. The reason is that the EEG will be sending events with a power level between 0 and 1.0f. These updates will come quickly and may switch between two skills (even if they are only focusing on one).
If we lift and freeze it in place (lift 1 M), then how do we unfreeze? When should this occur? In addition, what if they want to lift it higher?
My current thought is to perform a rolling average over 5 seconds instead which will move each item by a small amount over 1 second.
I have it set that if the object's height increases by 1 more than it's start value then it can't raise anymore
if I freeze an object's position please make it so it cannot be adjusted mental.
Example:
if (event.lift && rigidbody.constraints.freezeY == false){ //lift.script }