Main Menu
Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - clown611

#16
Support / Re: Troubel with the rotation/movement
February 13, 2017, 06:14:20 PM
https://youtu.be/ogQmk16mD80

Alright im home. This is the result I got out of this. It worked out pretty good I just need to reset the rotation so the ship is straight after turning. I would like not to bug you guys so much but I have googled and looked into some exampels but I dont know how to do it.
#17
Support / Re: Troubel with the rotation/movement
February 13, 2017, 11:41:45 AM
I played around with it but not quite enough since im in school it worked much better. Ty for the fast answer. But I still have a problem with going up and then to the sides or the other way around. Since I still have some rotation I will not go straight up but in wacko angle. I can explain it better when I get home from school. But im wondering if there is a way to reset the ships side to side turning-angel when im turning up or down.
#18
Support / Re: Troubel with the rotation/movement
February 13, 2017, 07:42:57 AM
Basicly im wondering how to straiten up the ship after turning so it can go straight up and down. I also like random tips.
#19
Support / Troubel with the rotation/movement
February 12, 2017, 11:14:37 PM
Hi again friends. I have some problems with my flying spaceship. The goal is to fly around in space by rotating up,down,right. I have limit the spaceship on the x so it wont rotate because I had some camera issues when it did that. I start with posting videos of my problem.

https://www.youtube.com/watch?v=E4LPfoJZoxQ&feature=youtu.be

This is the spaceship moving along the Y.

https://www.youtube.com/watch?v=dIpUXWer5as&feature=youtu.be

And here it is moving along the X.

But when I tries to combine the following methods it goes like this.

https://www.youtube.com/watch?v=LR7vk2gSTkA&feature=youtu.be

I think I understand the problem and I think I have to rotate the spaceship so it's straight before I make it go up and down.
This is my code:

  if(rotatingUp){

            counter++;
            rabbit.rotateX(-0.01f);
           

            if(lastY > mostUpSpaceShip){
                isRotatingDown = true;
                rotatingUp = false;
                moving = true;
            }

if ( rotatingRight){
            rabbit.rotateAxis(c.getYAxis(),-0.01f);
  if(lastX > rightOfSpaceShip){
                rotatingRight = false;
                moving = true;
            }
}
#20
Support / Re: Directions detect?
February 09, 2017, 11:37:54 AM
Ye it worked fine but i will try the getzaxis. Thanks
#21
Support / Re: Directions detect?
February 09, 2017, 01:32:22 AM
ok I kinda solved it using ship.translate(camera.getdirection().x,camera.getdirection.y,0.04f). no idea if that is a good solution
#22
Support / Directions detect?
February 09, 2017, 12:21:44 AM
Hi again. Im making a game with a spaceship that moves around in space. I controll my spaceship with translate, but when I rotate my ship towards another direction ofc the translate movement doesnt apply on my spaceship. How do you handle this? Is there a way to detect directions or should I make my own method depending on how much I have rotated?
#23
Support / Re: Make the camera follow an object3d
February 07, 2017, 08:56:48 AM
Ye I realised that you had two wikis one for AE and one regular. It was my mistake , got it working now tho. Ty guys
#24
Support / Re: Make the camera follow an object3d
February 07, 2017, 01:22:17 AM
Ye aeroshark you gave me the correct Idea but I didnt play around with it to understand the value. I Will try out to make a texture with your instructions tomorrow. Ty guys for the help
#25
Support / Re: Make the camera follow an object3d
February 07, 2017, 01:05:29 AM
Im sorry if I made myself unclear I was kinda sleepy yesterday. After I looked into the carexample i understod What I did wrong. But I still have this question about textures in jcptAe. When i look it up in the wiki i can see that i uses Java.awt as a input wish I cant use in android studio . I tried diffrent examples with setting a picture as texture with no success. But setting a rbgcolor works fine. Im I stupid?
#26
Support / Re: Make the camera follow an object3d
February 06, 2017, 01:08:34 PM
but im using the jcpt-ae. How can I load a texture into the Texture?
#27
Support / Re: Make the camera follow an object3d
February 06, 2017, 09:23:13 AM
ty guys for your help checking around in the car example right now. I only have one last question. I use android studio and I want to add textures but I have understood that androidstudio doenst use java.awt. So how do I do this?
#28
Support / Re: Make the camera follow an object3d
February 05, 2017, 03:37:11 PM
the camera took the spaceships centerposition so it put itself on the spaceship so I cant see him :P. Here is my code https://1drv.ms/u/s!AvWnW88CHl4QhQ3HZryfAKLpa139
#29
Support / Re: Make the camera follow an object3d
February 05, 2017, 12:53:48 PM
I tested it out but it wasnt what I was looking for. I want the object to move along the camera. If I "movein" the camera I want the object to movein with me.

Thanks for the fast response tho
#30
Support / Make the camera follow an object3d
February 05, 2017, 01:46:31 AM
Is this possible? Or how should I do this? I have a spaceship that is a loaded modell into a object3d, I want this spaceship to be in the center of my camera at all times. How do I do this?