Ambiera Forum

Discussions, Help and Support.

Ambiera Forum > CopperCube > Help with CopperCube
Help to fit an object to grid

matheusfr27
Registered User
Quote
2019-05-22 07:14:52

How can I make an object fit the grid?

I'm trying to develop something where the player has the freedom to choose where to put such a construction, I just have no idea how to do it! Can you help me?


erik
Registered User
Quote
2019-05-22 07:34:13

You can use the 'snapToGrid' editor plugin which can be downloaded here: https://www.ambiera.com/coppercu...


matheusfr27
Registered User
Quote
2019-05-23 02:51:05

Could you give me a hint of how I would do to activate this plugin in the scene?


erik
Registered User
Quote
2019-05-23 07:28:08

Download .zip archive, extract its content (usually a .js file) to Your Documents\CopperCube\extensions on Windows or ~/Documents/CopperCube/extensions on Mac OS X, restart CopperCube. It's then under Edit -> Plugins, I think and usually it has a shortcut.


matheusfr27
Registered User
Quote
2019-05-23 18:27:16

I understand how to install the plugin in enginer, and just like you said I updated the plugins and said the following about SnapToGrid:
Ignoring extension file 'snapToGrid.js' because it doesn't start with 'behavior_' or 'action_'.


I do not know how to use it on some object, or even generally use this plugin.


j9907
Registered User
Quote
2019-05-24 03:08:09

Place it in the "plugins" folder and NOT the extensions folder!


Create reply:


Posted by: (you are not logged in)


Enter the missing letter in: "I?ternational" (you are not logged in)


Text:

 

  

Possible Codes


Feature Code
Link [url] www.example.com [/url]
Bold [b]bold text[/b]
Image [img]http://www.example.com/image.jpg[/img]
Quote [quote]quoted text[/quote]
Code [code]source code[/code]

Emoticons


   






Copyright© Ambiera e.U. all rights reserved.
Privacy Policy | Terms and Conditions | Imprint | Contact