How do I create a cospace in which viewers are restricted from moving?

143 views
Skip to first unread message

Andrew Sharpe

unread,
Dec 5, 2016, 4:05:27 AM12/5/16
to CoSpaces
Hello,

I have noticed a few people have managed to share spaces in which the user is pinned to a point and can only look around. How is this manageable?

In a slightly separate question. Is there a way to prevent users from walking through walls or flying when they are moving around one of my cospaces?

Any help would be much appreciated.

Susanne Krause

unread,
Dec 5, 2016, 5:18:30 AM12/5/16
to CoSpaces
Hello Andrew, 

We are working on a feature that will solve two of your issues: With the upcoming "camera object", you will be able to define where your viewer will start the experience and how they can move through the space – for example, by walking or flying. Or you can define that they won't be able to move at all but can only look around. 

We are also working on your other issue: preventing your viewers from walking through solid objects. Soon, you will be able to define spaces that will be unaccessible in the view mode. That should solve this problem. 



However, for one of your questions I have a solution you can also use right now: Pinning your viewer to a point on the stage. You can do this easily with a short piece of code.

If you haven't upgraded to the Scripting Early Access, do so; like this: 



Now, open the project in which you want to use this feature. Select an object, at best a person, and put them where you want the viewer of your space to be pinned. Then click the "code" button in the upper right-hand corner. Copy and paste the following into the code editor: 

var viewer = Space.getItem('???');

viewer.focusOn(true);


Instead of "???", paste the object ID of the object you just put to the stage. This image shows where you can find the object ID and where you should paste it. 



Now, once you press play or access the space via a sharing link, the user will only see the space from the point of view of this object. 


Reply all
Reply to author
Forward
0 new messages