Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

#code

Members
  • Content Count

    15
  • Joined

  • Last visited

Community Reputation

2 Neutral

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. #code

    Slider joints

    I change script: Script.TireMass = 5 Script.SpringForce = 1000 function Script:Start() self.Wheels={} self.Wheels[0]=self.entity:FindChild("WheelFL") self.Wheels[1]=self.entity:FindChild("WheelFR") self.Wheels[2]=self.entity:FindChild("WheelRL") self.Wheels[3]=self.entity:FindChild("WheelRR") self.Amortisseurs={} self.Axis={} self.SecondAxis={} for n=0,3 do pos=self.Wheels[n]:GetPosition(true) self.Axis[n]=Pivot:Create(self.entity)-- self.Axis[n]:SetPosition(pos, true) axe=Vec3(0, 1, 0) self.Amortisseurs[n]=Joint:Slider(pos.x, pos.y, pos.z, axe.x,axe.y,axe.z, self.Axis[n
  2. You can use, for example, Riftcat to emulating HTC Vive. https://riftcat.com/vridge. It's support daydream and gear controller. And you can emulate controllers, use app from google play.
  3. Hello, it's me again. And I'm trying to make joint: Slider shock absorbers. But something goes wrong, and I can not understand that. Please explain how this works. I need the car to fall to the ground and spin the shock absorbers. Code in RaceCar.lua: Script.TireMass = 20 Script.SpringForce = 1000 function Script:Start() self.Wheels={} self.Wheels[0]=self.entity:FindChild("WheelFL") self.Wheels[1]=self.entity:FindChild("WheelFR") self.Wheels[2]=self.entity:FindChild("WheelRL") self.Wheels[3]=self.entity:FindChild("WheelRR") self.Axes={} for n=0,3 do self.Axes[n]=Pivot:Create
  4. I think I know what the problem is, but I don't know how to solve it. First, you need to remove the bridge in the corner of the map, because it is not completed. But it's not about him. If you remove it, then the following happens: when I press the space bar (handbrake), the car starts to skid, and when it starts to fall the game crashes. What to do? Is this a known issue?
  5. *Don't forget to add --in or --out keys in script.
  6. I'm using a Vehicle script.lua from FPS template. Once I start driving, after a while, the leadwerks just crashes. Tell me what to do. bug.mp4 LeadwerksRacingTemplate.rar
  7. Hello, tell me how to get the entity of the player?
  8. #code

    Vehicle

    Hi! Could you tell me please, as eliminate failure wheels?
  9. #code

    VehicleAgain

    I do not even see the error, the game just crashes.
  10. #code

    VehicleAgain

    Hi. I'm still trying to create a vehicle. I seem to have made it from the example of the workshop, but when I want to get on the bus, an error appears, something about nil value. I am waiting for help, I attach the project. https://yadi.sk/d/b77bSHYwp-EgHQ
  11. #code

    Vehicle

    Hi. I want to make a managed vehicle, but found no examples other than what lies in the REFERENCE API. Please tell me how to implement it if I have an FBX model with a body and four separate wheels.
Facebook Twitter Youtube Github Steam
×
×
  • Create New...