Ambiera Forum

Discussions, Help and Support.

Ambiera Forum > CopperCube > Feature requests and bug reports
bug found in js

eminem100
Guest
Quote
2017-07-07 16:53:30

I've found a bug



var s = ccbGetSceneNodeFromName("Camera1");
var otherNode = ccbGetSceneNodeFromName("soldier");

ccbAICommand(s, "attack", otherNode);'



the above code with used for enemy is shooting a wrong direction, its about 30 degrees + x, 12+ degrees in y and 34+ in z. how to fix this?


niko
Moderator
Quote
2017-07-10 09:18:23

Some behaviors in CopperCube (like the object controlled by keyboard, or the game AI) have a additional rotaiton you can set. Maybe use that?


eminem100
Guest
Quote
2017-07-10 14:02:02

After @Niko's solution, it finely moves left to right but it is unable to shoot if I move up and down. The problem with y axis.


niko
Moderator
Quote
2017-07-11 10:09:37

Hm, that's strange. Could you post a screenshot or video maybe?


Create reply:


Posted by: (you are not logged in)


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