1 registered members (TipmyPip),
18,619
guests, and 5
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
Re: 3 random questions
[Re: Walori]
#299612
11/25/09 14:14
11/25/09 14:14
|
Joined: May 2009
Posts: 1,816 at my pc (duh)
darkinferno
Serious User
|
Serious User
Joined: May 2009
Posts: 1,816
at my pc (duh)
|
dont know about one, not sure about two but for making a night level, changing the camera ambient to a negative value can do alot, camera.ambient=-80; or so on, theres also a sun light variable that affects the ambience of all models, look in the manual...
as for 3, hmmm, you want to trace on the camera.s tilt? well.. thats easy enough:
VECTOR trace_coords;
vec_set(trace_coords.x, vector(3000,0, 0)); vec_rotate(trace_coords.x, camera.pan)); vec_add(trace_coords.x, cam_pos.x);
c_trace(camera.x, trace_coords.x, IGNORE_PASSABLE+IGNORE_ME+ACTIVATE_SHOOT+USE_POLYGON);
the above will trace from the camera in the direction the camera is looking...
well lets hope that was helpful, also most of those questions were addressed in the AUMS, which are quite fun to read through
|
|
|
Re: 3 random questions
[Re: Gordon]
#299627
11/25/09 16:59
11/25/09 16:59
|
Joined: Oct 2004
Posts: 4,134 Netherlands
Joozey
Expert
|
Expert
Joined: Oct 2004
Posts: 4,134
Netherlands
|
1) Structs I have a structured player. Let's call it PlayerS_1, now is there a way I can get to this structure by you->struct->something? No, player is in your structure, the structure not in your player. You can do what Gordon says, build your own detection/collision functions to make you redundant or make a search function to look through all player structures with you in them.
Last edited by Joozey; 11/25/09 16:59.
Click and join the 3dgs irc community! Room: #3dgs
|
|
|
|