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?
|