Moving Camera Vertically with Blockly

44 views
Skip to first unread message

Jay Mattison

unread,
Sep 20, 2017, 9:46:26 AM9/20/17
to CoSpaces Scripting
We noticed a change in how the camera is affected by the "Move [Item] [X] meters [Direction] in [Y] sec." block. Previously, it appeared the "direction" was relative to how the camera was positioned at the start of the scene, and not dependant on where the camera was currently looking. Now it appears that when the camera is tiggered to move forward, it is relative to where the camera is currently looking.

This is a great improvement, however, it has had one drawback. It appears Up and Down are also affected by where you are currently looking, meaning a move Up, if the camera is looking down or up, will result in the camera moving at an angle instead of straight up.

Is there plans to add a block that moves an item on the X, Y, and Z (similar to the "Turn [Item] around [Axis] by [X] in [Y] sec." block)? We are hoping to use a relative movement solution rather than a static coordinate.

Benjamin Singh

unread,
Sep 21, 2017, 6:08:22 AM9/21/17
to CoSpaces Scripting
Hi Jay,

like you said, the "move item x meters direction in y sec" block moves an object in local space and relative to itself. If you want to move an object in world space you can use this block:


It moves an object to an absolute position.


Having a block which moves an object relative to itself in world space sounds reasonable. I'll talk to the team about it and maybe we can add a block for this.


Benjamin


Reply all
Reply to author
Forward
0 new messages