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. Dismiss Notice

How to make a T-Rex eat something

Discussion in 'Scripting' started by durukanozanalp, May 2, 2019.

  1. durukanozanalp

    durukanozanalp

    Joined:
    Jan 4, 2019
    Posts:
    12
    Hi.

    I am working on a project where the player plays as a t-rex. The t-rex asset has all the animations on itself , licenced product. I couldn't figure out how the other object moves with and inside of the mouth. I watched couple of IK tutorials, but they were not this much detailed. They showed simple object holding coding and animations.

    Imagine the mouth grabs the object and after couple of chewing it swallows, like in a crocodile documentray. And i am considering to create couple of different objects for this action.
     
  2. palex-nx

    palex-nx

    Joined:
    Jul 23, 2018
    Posts:
    1,745
    After the mouth grabbed the object, just destroy it and do everything what happens afterwards with effects and animations.
     
  3. durukanozanalp

    durukanozanalp

    Joined:
    Jan 4, 2019
    Posts:
    12
    The crucial moment is that grabbing and swallowing moment. I can't destroy the object at that moment. It's like a croc hiding underwater for an ambush, and the target is a baby buffalo. The player decides how to grab and do stuff, like a documentary but this time the player is the croc.