1. #1

    Help Needed For Custom Camera

    Does anyone know if there is a way to get a custom camera to follow the rider without using a physics joint, or if there is a way to trigger something to reposition the game camera.

    Any help would be much appreciated.
    Share this post

  2. #2

    Re: Help Needed For Custom Camera

    * Note that this will only work with a custom, YELLOW camera and not with the default BLUE one.

    You can use an OPE set to the rider's position, rotation, and some math.
    For example, if the bike moved in a straight line along the X axis, you can get it's Position X and Y, then move the camera with OPE (Object Position Event). Set the X and Y to the Position X and Y, and set Z to the camera's current Z coordinate. Then it will follow along the X axis and Y of the bike.

    Link these to the bike
    Object Info Data Source > Position X
    Object Info Data Source > Position Y

    Interval Trigger > 1 tick, Link to OPE
    OPE X= Pos_x, Y= Pos_y, Z= (press Y to set to camera's coordinate)

    If you want it to move around the bike as well, like during turns, I think you'll need a dummy object as well. Glue the camera to a dummy object (to enable a pivot point block) and move the pivot point centered with the bike. Next you'll need Object Info > Angle Y ( I think? ). The next step is complicated to me because I would get the angle of the bike and set the OPE to move your camera glue group. It's complicated for me because I never know whether to set it using Local or not. Personally I set the angle of the Dummy object so I can then rotate it if the camera moves wrong.

    Needs some clarification from others, but that's a start :/
    Share this post