Jump to content

Jazz

Members
  • Posts

    265
  • Joined

  • Last visited

Everything posted by Jazz

  1. It's the door shadows. Lights + textured glass = slow down. Set them to none.
  2. Try turning shadows on your doors to dynamic or off. Static slows them down the most.
  3. That doesn't work right either. After studying the code it looks like Josh swapped something around in SetGear(), or something.
  4. That wouldn't work. You go slower in reverse so you would end up going slower forward and faster backwards after changing them around.
  5. My lua project was fine and I left it for a few weeks. Now when I load it up the vehicle's forward/reverse controls are reversed. Couldn't figure it out so I created a new project with just flat terrain and shadmar's prefab car. Reversed controls.. Anyone else experiencing this or did I mess something up?
  6. I found this lib yesterday and it worked out-of-the-box for ogg in LUA. It does not use luajit and uses the zlib license. So far I just tested background music. A 20 meg .wav converted to a 1.9meg ogg. Extremely easy to use http://viremo.eludi.net/proteaAudio/index.html
  7. Jazz

    Vehicles

    Truck and Tires are rigid body/prop. Certain settings will crash it. Still trying to figure it out. Last vehicle I made the same way but forward/reverse work opposite of what they should.
  8. Jazz

    Vehicles

    Finally got it to work for me. Script never could find all the tires so I modified it very slightly. Changed code is in the section below. Sorry about the formatting, I just can't get it to display properly. --Build the vehicle self.vehicle = Vehicle:Create(self.entity) for n=1,8, 2 do child[0] = self.entity:FindChild("tire"..tostring(n)) child[1] = self.entity:FindChild("tire"..tostring(n+1)) if child[0]~=nil and child[1]~=nil then for i=0,1 do box = self:CalculateTireSize(child[i]) if box~=nil then tireradius = math.max(box.size.y,box.size.z)*0.5 tirewidth = box.size.x tirepos = box.center + child[i]:GetPosition(false) self.vehicle:AddTire(tirepos.x,tirepos.y,tirepos.z,self.tiremass,tireradius,tirewidth,n<2) table.insert(self.tires,child[i]) end end if n>0 then self.vehicle:AddAxle(self.vehicle:CountTires()-2,self.vehicle:CountTires()-1) end end end I used the pickup truck body prefab and added the tires manually, setting the truck's tire children like the attached image... Hope this helps someone Edit: forgot to mention the tires must be named tire1, tire2, etc.
  9. Ah I see. Thanks. I'm slowly learning...
  10. I found when trying to create a material it grabs the filename incorrectly. For example if the filename is beech_branch_dif.tex it will read it as beech_branch.tex. It doesn't grab the last string after the underscore so beech_branch_leafless_dif.tex would come out as beech_branch_leafless.mat. Beta version
×
×
  • Create New...