move Z in tutorial06

View previous topic View next topic Go down

move Z in tutorial06

Post  tylercaiden on 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

View user profile

Back to top Go down

Re: move Z in tutorial06

Post  sio2interactive on Thu Apr 16, 2009 4:48 pm

vec3?
vec4?

_________________
SIO2 Interactive
Free Open Source 3D Game Engine for iPhone and iPod Touch
http://sio2interactive.com
avatar
sio2interactive

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

View user profile http://sio2interactive.com

Back to top Go down

Re: move Z in tutorial06

Post  tylercaiden on 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

View user profile

Back to top Go down

Re: move Z in tutorial06

Post  oioioi on 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

View user profile

Back to top Go down

Re: move Z in tutorial06

Post  sio2interactive on Fri Apr 17, 2009 5:27 pm

w

_________________
SIO2 Interactive
Free Open Source 3D Game Engine for iPhone and iPod Touch
http://sio2interactive.com
avatar
sio2interactive

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

View user profile http://sio2interactive.com

Back to top Go down

Re: move Z in tutorial06

Post  Francescu on 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

View user profile

Back to top Go down

Re: move Z in tutorial06

Post  tylercaiden on 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

View user profile

Back to top Go down

Re: move Z in tutorial06

Post  tylercaiden on 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

View user profile

Back to top Go down

Re: move Z in tutorial06

Post  oioioi on 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

View user profile

Back to top Go down

Re: move Z in tutorial06

Post  tylercaiden on 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

View user profile

Back to top Go down

Re: move Z in tutorial06

Post  Sponsored content


Sponsored content


Back to top Go down

View previous topic View next topic Back to top

- Similar topics

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