Ambiera ForumDiscussions, Help and Support. |
|
|
|||||
|
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 |
||||
|
@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 :-) |
||||
|
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] |
||||
|
I created a HUGE upload of stuff - enjoy! https://www.ambiera.com/forum.php?t=8677 |
||||
|
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. |
|