MCPcopy
hub / github.com/4ian/GDevelop / updatePosition

Function updatePosition

Extensions/3D/A_RuntimeObject3DRenderer.ts:30–36  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

28 }
29
30 updatePosition() {
31 this._threeObject3D.position.set(
32 this._object.getX() + this._object.getWidth() / 2,
33 this._object.getY() + this._object.getHeight() / 2,
34 this._object.getZ() + this._object.getDepth() / 2
35 );
36 }
37
38 updateRotation() {
39 this._threeObject3D.rotation.set(

Callers

nothing calls this directly

Calls 7

setMethod · 0.65
getWidthMethod · 0.65
getHeightMethod · 0.65
getZMethod · 0.65
getDepthMethod · 0.65
getXMethod · 0.45
getYMethod · 0.45

Tested by

no test coverage detected