Ambiera Forum

Discussions, Help and Support.

Ambiera Forum > CopperCube > Help with CopperCube
please help me!!!

JesterGamer
Guest
Quote
2021-06-19 10:45:07

my gun does not rotate with me when i change the active camera.


harun_cakann
Registered User
Quote
2021-06-19 17:08:21

I'm having this problem too :) : D


mr.phimosis
Guest
Quote
2021-06-19 19:41:34

it's very simple to solve this problem, you need to put the gun as a child node of the camera


just_in_case
Moderator
Quote
2021-06-20 05:59:26

Do as suggested by @Mr.phimosis, make the gun children of your camera and it will now follow the movement of the camera. make sure to align the gun in front of the camera facing angle.


JesterGamer
Guest
Quote
2021-06-20 10:30:30

I've already done what you suggested, for example when I press f it switches the active camera and when I switch the active camera and turn left and right the gun does not rotate with me. I can't continue improving my game because of this error!


ngame
Registered User
Quote
2021-06-20 10:38:20

This is Copper Cube bug. I wrote about this to Niko for few days ago. Niko replied that he would look into it soon.


veganpete
Registered User
Quote
2021-06-21 11:57:33

It's not a bug. If you attach a gun as child to a camera, when you switch to a different camera, the gun will still be attached to the inactive camera - that's why the gun wont move with the new camera.

Simplest solution is to make 2 gun clones - one for each camera.

Best solution (as others said previously) is to set the gun as a child of the camera - and then switch the parent node of the gun whenever you switch cameras, using: ccbSetSceneNodeParent

Alternative solution is to use two 3rd person cameras which both follow the gun (which can then be set as game character, moved by keyboard).


serguell
Registered User
Quote
2021-06-24 17:26:54

JesterGamer wrote:
my gun does not rotate with me when I change the active camera.


I am more of a 3D modeler and animator. My suggestion when it comes to Character with Gun. Create a custom IK animation which the character and gun is one IK animation and make sure both textures import into Coppercube.


Create reply:


Posted by: (you are not logged in)


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