Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Forklift help

Discussion in 'Editor & General Support' started by Chiyou, Oct 30, 2015.

  1. Chiyou

    Chiyou

    Joined:
    May 5, 2014
    Posts:
    7
    Hey there, I'm really new to Unity and so far have only been able to do some really basic scripting thanks to some youtube tutorials, I'm primarily a 3D artist and love creating assets for unity, I've been trying to do some really basic coding to bring a world i'm trying to create together but am finding it difficult to find solutions to my problems with tutorials so i thought i'd come here for help.

    I'm trying to create a basic forklifting game where you drive around the forklift and move cargo from one spot to another. So far i've been able to get the forklift driving around but am stuck with these problems:

    - Having the forks move from one position to three other positions (I would like it so that the forks are at lowered position and when you press the "r" key they raise to mid position, then when pressed again high position, then back to mid, and then back to low.)

    - I've tried using box colliders and rigid body to be able to pick up the cargo container but it creates a huge array of problems while driving around as the container always breaks free from the forks. Using Continuously Dynamic Collision detection seems to help a little bit but does not fix the problem.

    - I would like my chain to be able to move, but I modelled it as one piece of geometry. Is there any kind of built in deformer or rigging system i can use to have the chain follow along the pulley's as the forks go up and down?
     

    Attached Files:

    • Help.jpg
      Help.jpg
      File size:
      1,005.8 KB
      Views:
      688
    Last edited: Oct 30, 2015
  2. fffMalzbier

    fffMalzbier

    Joined:
    Jun 14, 2011
    Posts:
    3,276
    I Would recommend to reparent the Container / pallet to the fork lift if you lift them up and unparent them if you detect that they are back on the ground.
     
    PopAlexandra likes this.
  3. PopAlexandra

    PopAlexandra

    Joined:
    Aug 18, 2018
    Posts:
    1
    That's what I would recommend, too. It's by far the easiest way to handle the issue.
    __________________________
    Alexandra from Maximal forklifts