Yeah, from appearances it spawns it in one particular constant direction from you, on the same Z-level as you. First time I did it, I didn't know they didn't always spawn in front of you; I pushed V a few times, and my framerate suddenly tanked, and I looked to my left and there were 3 cars all on the exact same location, vibrating and slowing everything down /tongue.gif" style="vertical-align:middle" emoid=":P" border="0" alt="tongue.gif" />.
If it were essential I could probably root around and figure out how to make them spawn aboveground (or just spawn them at a Z-level of 300 or so and have it fall) but we'll probably have designated spawn points (in bases). Actually for ripping, we gotta solve this problem. One way to do that could be to cast a ray, at the proper X/Y coordinates, downward from high up, and find out where ground level is, then just spawn the ripping vehicle right there (or a foot or two in the air).
ACTION NEWS UPDATE
-
finnbryant
- Posts: 360
- Joined: Sat Feb 17, 2007 11:18 am
- Location: England
i suggest more than 1 ray, it may cost some cpu time, but if you spawn on a steep slope it might end up with the back inside the slope /wink.gif" style="vertical-align:middle" emoid=";)" border="0" alt="wink.gif" />
one on each corner? thats if there is a simple way of finding the size of the thing you are creating.
or maybe do a collision test and then move it up until it passes? (obviously after you have done 1 raycast or it would take ages)
one on each corner? thats if there is a simple way of finding the size of the thing you are creating.
or maybe do a collision test and then move it up until it passes? (obviously after you have done 1 raycast or it would take ages)
Last edited by finnbryant on Sat May 10, 2008 6:52 pm, edited 1 time in total.
/tongue.gif" style="vertical-align:middle" emoid=":P" border="0" alt="tongue.gif" /> I'll play around with it when I get that far. I was mostly making a note to myself. Up next is converting a model from .blend to .dts, which looks like it might be challenging (though .blend to .dts seems to be the only available conversion to me since I'm only using free software).
-
Blackdutch
- Posts: 196
- Joined: Wed Oct 25, 2006 9:58 am
-
finnbryant
- Posts: 360
- Joined: Sat Feb 17, 2007 11:18 am
- Location: England
hmm... maybe, but my blog topic has kind of replaced it, to be honest id forgotten it was here...
also, its sort of no longer valid, my development direction is different to his, for example i dont plan to have vehices for a few months yet, but i already can simulate any time of day/night... so it would really make more sense to use a different topic.
also, its sort of no longer valid, my development direction is different to his, for example i dont plan to have vehices for a few months yet, but i already can simulate any time of day/night... so it would really make more sense to use a different topic.
Last edited by finnbryant on Mon Feb 09, 2009 12:37 pm, edited 1 time in total.
-
badpazzword
- Posts: 3627
- Joined: Thu Jan 12, 2006 8:00 am
- Contact:
Cadillac wrote:QUOTE (Cadillac @ May 7 2008, 10:55 PM) Over MSN?
Or fileshare
Edit: somesuch other P2P
Have gaming questions? Get expert answers!


Oh shutup 
"If you wish to make an apple pie from scratch, you must first invent the universe." Carl Sagan ("The Lives of the Stars" ep. 9 Cosmos)
Rants Blog Cadillac, *Wurflet@Event, ?GoldDragon@Alleg, ^Biggus*#$@us@XT, +Ashandarei@Zone






