shamansir / elm-aframe / AFrame.Extra.Physics

Components for A-Frame physics integration.

Primitives

grid : List (Html.Attribute msg) -> List (Html msg) -> Html msg

Floor.

grid [ staticBody ] []

Primitive attributes

dynamicBody : Html.Attribute msg

A freely-moving object. Dynamic bodies have mass, collide with other objects, bounce or slow during collisions, and fall if gravity is enabled.

box [ dynamicBody ] []

staticBody : Html.Attribute msg

A fixed-position or animated object. Other objects may collide with static bodies, but static bodies themselves are unaffected by gravity and collisions.

box [ staticBody ] []

Camera attributes

kinematicBody : Html.Attribute msg

Player-controlled body, which can move but is not affected (directly) by the physics engine. Intended for use on the player's model. Gravity and collisions are simulated, without giving full control to the physics engine.

box [ kinematicBody ] []