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. Voting for the Unity Awards are OPEN! We’re looking to celebrate creators across games, industry, film, and many more categories. Cast your vote now for all categories
    Dismiss Notice
  3. Dismiss Notice

3D Runner: character question

Discussion in 'General Discussion' started by glad, Dec 14, 2018.

  1. glad

    glad

    Joined:
    May 10, 2014
    Posts:
    76
    Hi!
    I have a runner game where some character is running, jumping, sliding.I am making the game that is similar to subway surf.

    I wonder how the character should be created: should it has a non-kinematic or kinematic rigidbody I wonder ?

    If it is kinematic then all the collisions I should proceed myself. I guess with the kinematic rigidbody it is practically impossible to make such thing as going form ground on tho the train and vice versa. So in my opinion it should be non-kinematic rigidbody. So.. If I am correct, I wonder about several things:
    1. In my game I move the level. The player is standing in Z == 0 position. Only X and Y could be changed temporarily. So I wonder how should I move that level with all the objects in it. Should I change transform.position of the root or should I change every child physically(in do MovePosition in FixedUpdate)
    2. I have little experience in writing such thing as runners. So my previous experience was not very good I think. I wrote a car that moves by automatically generated level. So the ground in this level was a number of cube colliders. So every time the RigidBody got in contact with the place were the cubes are in contact it little bumped. So I am afraid about this situation here.

    Thank you in advance.
     
  2. Din0m1te

    Din0m1te

    Joined:
    Sep 9, 2015
    Posts:
    31
    glad likes this.
  3. glad

    glad

    Joined:
    May 10, 2014
    Posts:
    76