Re: How to do a 3d movement in bgt?

2016-06-20 Thread AudioGames . net Forum — Developers room : sneak via Audiogames-reflector


  


Re: How to do a 3d movement in bgt?

Thank you for sharing that with us. I wish more people would learn to share as well. .

URL: http://forum.audiogames.net/viewtopic.php?pid=265295#p265295





___
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector

Re: How to do a 3d movement in bgt?

2016-06-20 Thread AudioGames . net Forum — Developers room : Rastislav Kiss via Audiogames-reflector


  


Re: How to do a 3d movement in bgt?

and here is a last and final version, which is absolute reliable I think. I have implemented It to my minecraft, and make trench to the ground successfully! Code:vector move_3d(double x, double y, double z, double distance, double angle, double zangle) {double tempa=0, tempb=0;vector r;tempa=tempa+(distance*sine(((zangle)*pi)/180));tempb = tempb+(distance*cosine(((zangle)*pi)/180));r.z=z+tempa;r.x=x+(tempb*sine(((angle)*pi)/180));r.y=y+(tempb*cosine(((angle)*pi)/180));return r;}

URL: http://forum.audiogames.net/viewtopic.php?pid=265239#p265239





___
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector

Re: How to do a 3d movement in bgt?

2016-06-20 Thread AudioGames . net Forum — Developers room : Rastislav Kiss via Audiogames-reflector


  


Re: How to do a 3d movement in bgt?

Hello again,I am giving here me created function to calculate 3d movement, if someone interest in. I think that It working good, what you? A small problem is with round, I tryed to give It on values x and y to two decimal numbers, but bgt for some unknown reason did not round them.vector move_3d(double x, double y, double z, double distance, double angle, double zangle) {double tempa=0, tempb=0;vector r;tempa=tempa+(distance*cosine(((zangle-90)*pi)/180));tempb = tempb+(distance*sine(((zangle-90)*pi)/180));r.z=z+tempa;r.x=x+(tempb*cosine(((angle-90)*pi)/180));r.y=y+(tempb*sine(((angle-90)*pi)/180));return r;}

URL: http://forum.audiogames.net/viewtopic.php?pid=265207#p265207





___
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector

Re: How to do a 3d movement in bgt?

2016-06-18 Thread AudioGames . net Forum — Developers room : Rastislav Kiss via Audiogames-reflector


  


Re: How to do a 3d movement in bgt?

Hello,thank you too much sneak, that is what I was looking for. Thank you again.

URL: http://forum.audiogames.net/viewtopic.php?pid=265000#p265000





___
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector

Re: How to do a 3d movement in bgt?

2016-06-14 Thread AudioGames . net Forum — Developers room : sneak via Audiogames-reflector


  


Re: How to do a 3d movement in bgt?

You'll probably also want a way to check if there is something around that set of coords.You can do that by doing thisif(power((targetX-tempa), 2)+power((targetY-tempb), 2)<=100)This code takes the coords you got from the formula above and takes the target coords and checks the distance, if it's less than 10 tiles from the test coords, then it executes the code within the if statement.If you are unsure how to get the target coords, you'll want to have an array of the objects on your map handy, then run it through a forloop, so it looks something like this.for(int x<0; x

Re: How to do a 3d movement in bgt?

2016-06-14 Thread AudioGames . net Forum — Developers room : sneak via Audiogames-reflector


  


Re: How to do a 3d movement in bgt?

You'll probably also want a way to check if there is something around that set of coords.You can do that by doing thisif(power((targetX-tempa), 2)+power((targetY-tempb), 2)<=100)This code takes the coords you got from the formula above and takes the target coords and checks the distance, if it's less than 10 tiles from the test coords, then it executes the code within the if statement.If you are unsure how to get the target coords, you'll want to have an array of the objects on your map handy, then run it through a forloop, so it looks something like this.for(int x<0; x

Re: How to do a 3d movement in bgt?

2016-06-14 Thread AudioGames . net Forum — Developers room : sneak via Audiogames-reflector


  


Re: How to do a 3d movement in bgt?

double tempa=X+(distance*cosine(((this.PS_Degrees-90)*pi)/180));double tempb = Y+(distance*sine(((this.PS_Degrees-90)*pi)/180));Where distance is how far in front of the player you want to check.If you're movement code doesn't automaticly adjust the player's angle to make it so that 0 degrees is facing north rather than east, then take out the -90 in the formulas above.

URL: http://forum.audiogames.net/viewtopic.php?pid=264431#p264431





___
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector

Re: How to do a 3d movement in bgt?

2016-06-14 Thread AudioGames . net Forum — Developers room : Rastislav Kiss via Audiogames-reflector


  


Re: How to do a 3d movement in bgt?

Hello,yeah, It vill faster, but I do not have mathematical formula to do It. I am using sine and cosine to calculate 2d movement, but dont have something, that calculates new position from x, y, angle and length of movement line. I know, that here are some peoples who can know this formulas, so I am asking here. I have some idea, but I must think It before coding to the bgt.Thanks for help It vill very faster if someone helps me.

URL: http://forum.audiogames.net/viewtopic.php?pid=264381#p264381





___
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector

Re: How to do a 3d movement in bgt?

2016-06-10 Thread AudioGames . net Forum — Developers room : Aprone via Audiogames-reflector


  


Re: How to do a 3d movement in bgt?

You could just write one yourself.  As you said, you are not a beginner so it is probably faster for you to just write the code yourself, instead of searching for code someone else wrote and put into BGT for the beginners.

URL: http://forum.audiogames.net/viewtopic.php?pid=263851#p263851





___
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector

Re: How to do a 3d movement in bgt?

2016-06-10 Thread AudioGames . net Forum — Developers room : Rastislav Kiss via Audiogames-reflector


  


Re: How to do a 3d movement in bgt?

Hello vlad,I am not a beginner, I am programming in 5 languages, and can read the code.Rotation package can calculate positions, but concrete 3d not. Samtupy as a developer maked one mistake, because as I sayd the result z have no connection to x and y. For example, if you are on position 10 10 10, and move infront with z angle 270 (down), x and y coordinates vill not change, only z so result should be 10 10 9. But rotation package calculates x and y too, so result is in normal angle 0 10 11 9, which is bad.I need something simple, what calculates me correct new position.thanks.

URL: http://forum.audiogames.net/viewtopic.php?pid=263816#p263816





___
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector

Re: How to do a 3d movement in bgt?

2016-06-10 Thread AudioGames . net Forum — Developers room : vlad25 via Audiogames-reflector


  


Re: How to do a 3d movement in bgt?

yes it does. just look at it a bit more and don't look just at the readme. atleast you need to hae good coding skills to understand what's going on with the rotational package. me een don't know how to use it properly, but i'm still learning. soo like i said, look more on te rotation.bgt and you will se that there are some angle and z angle parameters. just pay attention at it.

URL: http://forum.audiogames.net/viewtopic.php?pid=263813#p263813





___
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector

How to do a 3d movement in bgt?

2016-06-10 Thread AudioGames . net Forum — Developers room : Rastislav Kiss via Audiogames-reflector


  


How to do a 3d movement in bgt?

Hello developers,I am continuing in programming minecraft for blinds in bgt. I already have maked a blocks world, in which you can move yourself. This movement is in 2d enviromment, only jumps must contain special algorithm to lift player, and give him back to the ground. To movement I am using classic sine(angle*pi/180) for x, and cosine(angle*pi/180) for y coordinate.But now I need allow player to destroy blocks. For this I am using a laser methot, where line is maked from players facing to some distance, and return coordinates if some barriers.How can I do this? Is there some class or procedures / scrypts maked for bgt, or should I look in some different programming languages for source codes?I know samtupys rotation package, in It is some that autor calling 3d movement, but It is not, because x and y coordinates have not connection with z and z angle.I need some function only, which takes original x, y, z, angle and z_angle, and return calculated 
 new position.Thanks for your help.

URL: http://forum.audiogames.net/viewtopic.php?pid=263808#p263808





___
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector