Remove sgscale references

This commit is contained in:
John Alanbrook 2024-04-22 08:47:04 -05:00
parent 0c2d344259
commit 5da74796d5
2 changed files with 1 additions and 8 deletions

View file

@ -162,7 +162,7 @@ Object.mixin(os.sprite(true), {
pick() { return this; },
boundingbox() {
var dim = this.dimensions();
dim = dim.scale(this.gameobject.gscale());
dim = dim.scale(this.gameobject.scale);
var realpos = dim.scale(0.5).add(this.pos);
return bbox.fromcwh(realpos,dim);
},

View file

@ -928,12 +928,6 @@ static const JSCFunctionListEntry js_debug_funcs[] = {
CGETSET_ADD(global, static_color),
};
JSC_CCALL(physics_sgscale,
js2gameobject(argv[0])->scale.xy = js2vec2(argv[1]);
gameobject_apply(js2gameobject(argv[0]));
cpSpaceReindexShapesForBody(space, js2gameobject(argv[0])->body);
)
JSC_CCALL(physics_closest_point,
void *v1 = js2cpvec2arr(argv[1]);
JSValue ret = number2js(point2segindex(js2vec2(argv[0]), v1, js2number(argv[2])));
@ -1021,7 +1015,6 @@ JSC_CCALL(physics_point_query_nearest,
)
static const JSCFunctionListEntry js_physics_funcs[] = {
MIST_FUNC_DEF(physics, sgscale, 2),
MIST_FUNC_DEF(physics, point_query, 3),
MIST_FUNC_DEF(physics, point_query_nearest, 2),
MIST_FUNC_DEF(physics, ray_query, 4),