Skip to content

Local entities are only grabbable in VR #1589

Closed
@ada-tv

Description

@ada-tv

Local entities can't be grabbed in desktop mode, but they can be grabbed in VR.

Script to reproduce (spawns a local box in front of you that should be grabbable, then deletes it after 10 seconds)

const grabThing = Entities.addEntity({
	type: "Box",
	dimensions: [0.2, 0.2, 0.2],
	position: Vec3.sum(MyAvatar.position, Vec3.multiplyQbyV(MyAvatar.orientation, [0, 0, -1])),
	grab: { grabbable: true },
}, "local");

Script.setTimeout(() => Script.stop(), 10 * 1000);

Script.scriptEnding.connect(() => {
	Entities.deleteEntity(grabThing);
});

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions