I’m trying to implement this to this Version(I also can’t post the Link)
or atleast an Updated version of this
I dunno what’s changed like:
- RenderData
- gfx and gfx.VertexFormat
- RenderComponent, Importing changed this to UIRenderable, but there no setVertDirty Function and getPointCount function.
- material.define()
- vector2.mag()
1 Like
Check this tutorial from our Chinese devs
Question5: vector2.mag() , you can use ’ a.length() ’ or ’ Vec2.len(a) ’ instead.
let p1 = new Vec2(100, 100);
console.log( p1.length);
let p2 = new Vec2(100, 100);
console.log( Vec2.len(p2) );