Ambiera Forum

Discussions, Help and Support.

Ambiera Forum > CopperCube > Programming and Scripting
It is suggested to establish an innovative download column of

zcfwei
Registered User
Quote
2021-01-02 04:06:43

It is suggested to establish an innovative download column of "actions, behaviors and plugins". I don't understand JS programming. I believe JS can produce a lot of function behaviors or plug-ins, which are convenient for coppercube to call. Now launch friends, together to create or change some useful innovation behavior, published in this column, for everyone to share. You can also publish behavior or functional requirements that you particularly want. Now I release two changes to Niko's original behavior:

1. Model camera, right click to pan.
https://www.mediafire.com/file/t...

2. Right click to move to the click position.
https://www.mediafire.com/file/z...

throw away a brick in order to get a gem, Let's encourage each other


hadoken
Guest
Quote
2021-01-13 13:05:49

@zcfwei

I find your suggestion a great idea. It's a pity that no one has responded yet, therefore here's a javascript snippet contribution of mine to be hopefully useful for anyone:

[b]"parenting objects by copying positions and rotations without really parenting them in the scene node tree"[b] -> to be checked and put in/after a simple "every few seconds do something" behaviour with IntervalMS set to 1:

--------------------

var p = ccbGetSceneNodeFromName("parentobject");
var c = ccbGetSceneNodeFromName("childobject");

var ppos = ccbGetSceneNodeProperty(p, "Position");
var prot = ccbGetSceneNodeProperty(p, "Rotation");

ccbSetSceneNodeProperty(c, "Position", ppos);
ccbSetSceneNodeProperty(c, "Rotation", prot);

--------------------

Scaling could also be included that way I guess :-)


hadoken
Guest
Quote
2021-01-13 13:16:08

an example project to my previous post:

[url] https://www.dropbox.com/s/pboqtxqamlet9gr/parenting-objects-by-LocRot-copying_example-with-3rdPersonCamera-fromScratch.ccb?dl=0 [url]


Robo
Guest
Quote
2021-01-15 03:03:33

I created a HUGE upload of stuff - enjoy!

https://www.ambiera.com/forum.php?t=8677


guest
Guest
Quote
2021-01-18 21:53:41

I think it would be great to have a wiki for coppercube

so we have a structured way to find solutions of doing things.

the easiest way to get to that is, i think, to ad tags to all the forum posts, so we can categorize them into categories such as landscaping, animation, scripting etc.


Create reply:


Posted by: (you are not logged in)


Enter the missing letter in: "Int?rnational" (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