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.


Messages - clown611

Pages: [1] 2 3
1
Projects / Billy in space
« on: September 18, 2017, 09:16:14 pm »
In my Android course in school I created a game using JPCT. It's not perfect neither bad but I was thinking that I could share the sourcecode to help others.

Here is the game:
https://play.google.com/store/apps/details?id=com.mikaelquick.billy.space

Here is the source code:
https://bitbucket.org/mikaelquick/spacebilly

If you want to give me some hardlove on my code I will gladly appreciate it.


2
Support / Re: Collision help
« on: March 21, 2017, 11:47:33 am »
Hi again it was no problems with the sphere I just needed to read your comments a few times and some trial and error. Now the collision works fine.

3
Support / Re: Collision help
« on: March 20, 2017, 11:16:39 pm »
ok im starting to understand how I shall use it. The main problem was the sphere I loaded, I dont know because of it's size or what it is. I played around with some primitives and it worked fine. Tomorrow I will play around with the offset or just make a new sphere. Thanks for the help, still i recomend you to start a course on udemy och sell som favors @ fiverr. You can earn som gold.

4
Support / Re: Collision help
« on: March 20, 2017, 03:11:11 pm »
I just have to confirm what I shall write in the spaceship.checkforeppliode() to check the whole sphere. shall i search for the translation? or how can I check the whole sphere?

5
Support / Re: Collision help
« on: March 20, 2017, 03:00:41 pm »
I will try hard after school.

6
Support / Re: Collision help
« on: March 20, 2017, 01:42:41 pm »
ye I read it and I tried to read all of the exampels. But I have a hard time understanding how to detect the whole sphere and not only the center and even how I shall manage to make it solid after I detect the whole sphere.

7
Support / Re: Collision help
« on: March 20, 2017, 09:49:02 am »
I thought I solved it but I didnt. Like I think I dont really understad the basic of the collision because sometime I can make it work and sometimes not. So basically I want to make a sphere solid. The way im using is adding a adding a listiner to earth and then putting

world.checkforcollision(spaceship.transformedcenter, earth.translation, 5)

You should sell leasons or make a course because I would pay you by the hoar for some explaining.

8
Support / Re: Collision help
« on: March 19, 2017, 09:54:57 pm »
well well well after reading up some I checked the code I used your code from the car example to follow my spaceship wish included

Code: [Select]
world.checkCameraCollisionEllipsoid(delta.normalize(), new SimpleVector(20, 20, 20), len, 3);
After I realised this I knew had to change the code or check if anything touched the spaceship. Since im lazy I solved it using checkself and went on from there. Still trying to figure out the best way of making an object solid. If you guys have any tips please give me some.

9
Support / Collision help
« on: March 18, 2017, 02:34:16 pm »
Hi I been trying to figure out this by myself but cant manage to figure it out. To pick up objects in my game I have implemented the collisionlistener, it worked out fine. But now when I want to make my planets solid I have tried to check when im colliding with them. But the listiner is only responding when the camera hits the object.

Code: [Select]
Object3d spaceship = a loaded 3ds modell
Object3d earth = a loaded 3ds modell

spaceship.setCollisionMode(Object3D.COLLISION_CHECK_SELF);
earth.setCollisionMode(Object3D.COLLISION_CHECK_OTHERS);

 earth.addCollisionListener(this);

Here is a video so you can see what I mean.

https://youtu.be/dmrYE05Q3MA


10
Support / Re: Transparent tips
« on: March 14, 2017, 02:49:00 pm »
Hi boss I learned things along the way. So my solution was to load the glass and the ship into sepparate models. And then I made a child of the glass.

11
Support / Re: Transparent tips
« on: March 13, 2017, 09:06:10 pm »
Well after reading I learned that you cant combine transparent and none transparent. I choose to make it faketransparent with a texture. I have just one question, can you import modells with transparency?

12
Support / Transparent tips
« on: March 13, 2017, 07:56:53 pm »
Hi again friends, I bought a model from fiverr with a transparent part. When I loaded in the model there was no transparency. I splitted upp the modell and used the transperancycommand to make it transparent and then put it on the other modell. Is this a bad way? or do you have another way of doing this?

13
Support / Re: Troubel with the rotation/movement
« on: February 14, 2017, 08:17:05 pm »
Hi again boss. I had to put on my thinkinghat and rewrote the code a couple of times. And now it works. I cant say I really know what I changed to make it work, but I guess I had some latenightcode that was blocking my success. Thanks for your help.

14
Support / Re: Troubel with the rotation/movement
« on: February 14, 2017, 09:02:36 am »
ok boss I get the point. Somewhere I made a blunder, I shall search and rewrite the code. But if I fail I will crawl back to you.

15
Support / Re: Troubel with the rotation/movement
« on: February 13, 2017, 09:24:15 pm »
ok I agree that the video was bad. But the real question is how do I straightenup the ship from the rotation on only the x-axel, so I can send it straight up.

https://youtu.be/PzQqUwYXbxQ

I made a new video that maybe can explain my problem better.

Pages: [1] 2 3