Skip to content

A batmobile implementation from Batman Arkham Knight

Notifications You must be signed in to change notification settings

CryptArc/BatmobileArkhamKnight

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Batman Arkham Knight - Batmobile

Vehicle setup

  • Rigidbody with mass 500
  • Box collider around the vehicle model's mesh
  • Adjustable steer angle and torque through code

Drive Mode

Afterburner Drive to Combat mode shift
Afterburner D2C

Combat Mode

Weapon pop Combat dodge
Weaponpop Dodge
  • The Batmobile is in Drive mode by default and vehicle physics are applied to it
  • It can be switched to Combat mode by pressing and holding down Left trigger
  • While in Combat mode, vehicle physics are not applied, rather it is moved using Rigidbody.MovePosition()

Camera settings

  • A camera's position is offset by height and depth from the Batmobile and follows it
  • Camera shakes while using boost
  • Camera's rotation and position in Drive mode
    • Rotation is set to the vehicle's Y axis rotation
    • Position is set using these equations
      X = Batmobile.position.X + cos(Batmobile's Y axis rotation in degrees) * depthOffset
      Y = Height offset
      Z = Batmobile.position.Z + sin(Batmobile's Y axis rotation in degrees) * depthOffset
  • Camera's rotation and position in Combat mode
    • Rotation is set using Right stick's input
    • Position is set in a similar way as of Drive mode, only replacing Batmobile's Y axis angle with Camera's Y axis

About

A batmobile implementation from Batman Arkham Knight

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published