majora2007 / CerebralAcademy

Design for Learning in Virtual Worlds class project.
0 stars 2 forks source link

controlled telepathy option #18

Closed andrewwilcox closed 11 years ago

andrewwilcox commented 11 years ago

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 }

majora2007 commented 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 .

andrewwilcox commented 11 years ago

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. the gap

majora2007 commented 11 years ago

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.

andrewwilcox commented 11 years ago

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