Good, yes it’s a variable defined elsewhere to get a reference to a scene entity. If sctn_Mark is the name of your entity you can do the same like this:
var sctn_Mark_entity = this.app.root.findByName('sctn_Mark');
var sctn_Mark = this.app.root.findByName('sctn_Mark');
var Nav1_Button= this.app.root.findByName('Nav1_Button');
sctn_Mark.setLocalPosition( Nav1_Button.getLocalPosition());
…which now works, thanks!
Is there a method to add easing to the abrupt transition from one position to another using deltaTime similar to the scaling method mention on the Manipulating Entities tutorial page, for a case like moving an entity to another entity’s position?
this.timer += deltaTime;
var s = Math.sin(this.timer) + 1;
entity.setLocalScale(s, s, s);
So yes, you can use the script update method to increment a timer and then use the .lerp method available on the pc.Vec3 class. Though there is an easier option that supports also a big number of easing curves, that is the Playcanvas Tween library. You can study here how it works: