28 March 2021

Marble Ball Controller: Progress

 





This controllers main controls are the involve forward and back to move simulate the forward and back movement respectively. The ball is bonded to the center to the poles going through the ball. This allows me to bind inputs when shifting the ball left or right. For the game that we are playing we will need this slide input to simulate jumping. Moving left and right will be done via left and right tilting of the controller. The CPE visible to the user will have the neopixel LEDs light up based on the rotation to help provide feedback to the controllers movement.    




    check if current rotation is increasing 
    if true output forward movement

    check if current rotation is decreasing 
    if true output backwards

    check if controller is tilting to the left
    if true output left
    light cpe pixels a certain color

    check if controller is tilting to the right
    if true output right
    light cpe pixels a certain color

    check if soft pot pressure is on a threshold
    if true simulate jump input




Test
Resistors presented include the soft pot and the rotary encoder 



Thoughts on the input mapping for the controller? What should be improved/you're recommendations on how input should be? Placement for the rotary encoder to read rotation is still up in the air at the moment, suggestion on how you would get something like this to behavior appropriately?


No comments:

Post a Comment

Note: Only a member of this blog may post a comment.