Skip to content

Latest commit

 

History

History
43 lines (30 loc) · 902 Bytes

README.md

File metadata and controls

43 lines (30 loc) · 902 Bytes

Jump

Jump is an A-Frame component that allows a player to jump on keypress.

Installation

Include the component file in the head of your HTML document:

<script type="text/javascript" src="jump.js"></script>

Usage

<a-camera 
  jump="
    height: 5; 
    interval: 2000; 
    timingFunction;
  " 
>
</a-camera>

Parameters

Parameter Default Description
height 5 The height your player will jump
interval 1000 The total time of the jump (in milliseconds)
timingFunction linear The timing function used to control the jump.

Example

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

License

MIT