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

Skateboarding game - grinding

Discussion in 'Physics' started by dodongoo, Mar 26, 2016.

  1. dodongoo

    dodongoo

    Joined:
    May 4, 2014
    Posts:
    1
    Hello everyone,

    Lately I've been thinking about making a skateboarding game. For now I'm just trying to do some planning and I already need help. The thing is, if it's gonna be a skateboarding game, then there's gotta be grinding in it. You know, you ride up to a rail or a ledge, then ollie onto it and press some buttons to do a 50-50/boardslide/whatever.

    Now I'm wondering if it's possible to make a script that recognizes the shape of an object and determines if there's a ledge that could be grinded, so I don't have to mark every ledge myself. If not, then what's the most optimal way to do it? How would I make my skater "know" if he can grind an object?
     
  2. jc-drile77

    jc-drile77

    Joined:
    Jul 1, 2014
    Posts:
    229
    The one I know (Mike V: Skateboard Party) I would say that it has prefabs with the grindable zones,
    In most of this games they have a pack of maps that cannot be modified.
     
  3. HAlbera

    HAlbera

    Joined:
    Jun 7, 2013
    Posts:
    63
    Yeah I think this could be done with a good deal of coding, but frankly like that guy above said you might be better off using prefabs that recognise they are grindable.

    It would make level design much easier for you i think. Perhaps have your standard objects and then have child objects attached to them and detect if the conditions are right to allow for a grind.

    Good luck!