Re: Question about vector object in BGT

2014-12-11 Thread AudioGames . net Forum — Developers room : yukionozawa via Audiogames-reflector
Re: Question about vector object in BGT Hmm, weird thing, but thanks for help. URL: http://forum.audiogames.net/viewtopic.php?pid=197184#p197184 ___ Audiogames-reflector mailing list Audiogames-reflector@sabahattin-gucukoglu.com https

Re: Question about vector object in BGT

2014-12-09 Thread AudioGames . net Forum — Developers room : camlorn via Audiogames-reflector
Re: Question about vector object in BGT I got curious.  You can do that operator overloading yourself and it turns out that Bgt has better documentation for Angelscript than the Angelscript manuals.  I know because I looked at using Angelscript once (briefly, because I read the manual and

Re: Question about vector object in BGT

2014-12-09 Thread AudioGames . net Forum — Developers room : CAE_Jones via Audiogames-reflector
Re: Question about vector object in BGT BGT's handles and C-style pointers are different, not in especially clear ways. I think it's more analogous to C#, but I haven't actually paid enough attention to C# to be sure.Handles function like pointers to objects, and most of t

Re: Question about vector object in BGT

2014-12-09 Thread AudioGames . net Forum — Developers room : camlorn via Audiogames-reflector
Re: Question about vector object in BGT Wait.  Does bgt not support the c-style pointer dereference?In C/C++, you'd handle interoperating between pointres and functions taking and returning by value like this:result = normalize(*vec); *vec = whatever(some_param1);Does BGT not ha

Re: Question about vector object in BGT

2014-12-09 Thread AudioGames . net Forum — Developers room : CAE_Jones via Audiogames-reflector
Re: Question about vector object in BGT This is a little weird, but I think the vector object is setup to let you bypass handles, by overloading opAssign and opCmp.You can probably remove the [ a-t ] from the function, but if you keep it, this line:vector ret=normalize(test);Probably needs

Question about vector object in BGT

2014-12-09 Thread AudioGames . net Forum — Developers room : yukionozawa via Audiogames-reflector
Question about vector object in BGT Hi.I want to create vector normalization function in BGT, but have an error. It says that object handle for vector object isn't supported.Is it really impossible to use vectors as parameters or return value? Here is the current script. vector@ norm

Question about vector object in BGT

2014-12-09 Thread AudioGames . net Forum — Developers room : yukionozawa via Audiogames-reflector
Question about vector object in BGT Hi.I want to create vector normalization function in BGT, but have an error. It says that object handle for vector object isn't supported.Is it really impossible to use vectors as parameters or return value? Here is the current script. vector@ norm