FORUM CLOSED, PLEASE REGISTER AT FORUM.SIO2INTERACTIVE.COM
Would you like to react to this message? Create an account in a few clicks or log in to continue.

move Z in tutorial06

4 posters

Go down

move Z in tutorial06 Empty move Z in tutorial06

Post  tylercaiden Thu Apr 16, 2009 4:45 pm

hi, just started working with SIO2 and very excited about it.

so far i have been playing with tutorial06 and have had some issues adding a z movement to vec2 start, i get struct vec2 has no member named 'z' and im not sure where i would add this member or how. any pointers would be great.

thank you Wink

tylercaiden

Posts : 5
Join date : 2009-04-16

Back to top Go down

move Z in tutorial06 Empty Re: move Z in tutorial06

Post  sio2interactive Thu Apr 16, 2009 4:48 pm

vec3?
vec4?
sio2interactive
sio2interactive

Posts : 1526
Join date : 2008-08-26
Age : 44
Location : Shanghai

http://sio2interactive.com

Back to top Go down

move Z in tutorial06 Empty Re: move Z in tutorial06

Post  tylercaiden Fri Apr 17, 2009 4:50 pm

not sure what you mean. i only see and have a vec2 in template 6.

tylercaiden

Posts : 5
Join date : 2009-04-16

Back to top Go down

move Z in tutorial06 Empty Re: move Z in tutorial06

Post  oioioi Fri Apr 17, 2009 5:15 pm

vec2 only got 2 variables(x and y)
vec3 got 3 variables(x, y and z)
vec4 got 4 variables(x, y, z and ?)

oioioi

Posts : 136
Join date : 2008-12-02
Location : Norway

Back to top Go down

move Z in tutorial06 Empty Re: move Z in tutorial06

Post  sio2interactive Fri Apr 17, 2009 5:27 pm

w
sio2interactive
sio2interactive

Posts : 1526
Join date : 2008-08-26
Age : 44
Location : Shanghai

http://sio2interactive.com

Back to top Go down

move Z in tutorial06 Empty Re: move Z in tutorial06

Post  Francescu Fri Apr 17, 2009 5:32 pm

If you want a vec3 example with sio2Rotate3D() then check tutorial09 line #260

Francescu

Posts : 136
Join date : 2009-03-18

Back to top Go down

move Z in tutorial06 Empty Re: move Z in tutorial06

Post  tylercaiden Mon Apr 20, 2009 9:45 am

ah! makes sense now Wink thank you guys for the help.

tylercaiden

Posts : 5
Join date : 2009-04-16

Back to top Go down

move Z in tutorial06 Empty Re: move Z in tutorial06

Post  tylercaiden Mon Apr 20, 2009 1:16 pm

so i am guessing renaming all my vec2 in template.mm to vec3 isn't an option? actually im not guessing lol.. i get the error "cannot convert 'vec3' to 'vec2' for argument '2' to 'void sio2FontPrint(SIO2font*,vec2*, const char*,...)"

edit: was able to resolve that but I am still seeing 2 errors left for "struct vec2" has no member named 'z' even though i have change vec2 start to vec3 start

tylercaiden

Posts : 5
Join date : 2009-04-16

Back to top Go down

move Z in tutorial06 Empty Re: move Z in tutorial06

Post  oioioi Mon Apr 20, 2009 1:48 pm

why do you want a z member in start? If I'm right start holds the x and y pos of a touch, and not for movement of the camera

oioioi

Posts : 136
Join date : 2008-12-02
Location : Norway

Back to top Go down

move Z in tutorial06 Empty Re: move Z in tutorial06

Post  tylercaiden Mon Apr 20, 2009 2:03 pm

thats what i have gathered... not i have switched over the temp 9 and what i am attempting to do is use the movement that is already there for the odject but also when its moved forward the object will move up or i guess have a positive gravity. i am trying to sorta take off like a plane.

tylercaiden

Posts : 5
Join date : 2009-04-16

Back to top Go down

move Z in tutorial06 Empty Re: move Z in tutorial06

Post  Sponsored content


Sponsored content


Back to top Go down

Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum