layabox / LayaAir

LayaAir is a fully platform rendering engine with rich 2D/3D rendering capabilities and a mature integrated development platform

Home Page:https://www.layaair.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

请问如何设置加速度或者改变重力方向或者设置某个方向的力

theajack opened this issue · comments

就是希望小球可以斜着运动

Laya.Physics.I.gravity = {x:3,y:10}

已找到方案