JU TPS Documentation
  • 🤩Welcome to JU TPS
  • 😄Quick Start
    • How to start a new scene
    • How to create a JU Character / Reskin Default Character / Setup New Characters
      • Ragdoll
      • Damageable Body
      • Physical Damage
      • Body Leaning Setup
      • Taking Damage / Healing
      • Footstep System
      • Resizable Capsule Collider
    • 📦 Addon Installer
  • 🎮Game Development
    • Game Styles
      • Third Person Shooter Style
      • First Person Shooter Style
      • Top Down Style
      • 2.5D Sidescroller Style
      • ⚠️Important Info About Cross-Plataform
    • Controls / Inputs
      • JU Input Manager
      • Input Events
    • How to create a Mobile Game with JU TPS
      • Mobile Inputs
    • How to load scene
      • Scene Controller
    • How to use Cover System
    • How to use inventory and add items
      • Inventory in UI
      • How to switch between items
      • How to align weapon rotation
    • How to create weapons and items
      • Prevent gun clipping through walls
      • Creating Projectiles/Bullets
    • How to use Dual Wielding System
    • How to use Armor/Cloth System
    • How to use Vehicle System
      • Standard Vehicle Configuration
      • How to create a Car Controller
      • How to create a Motorcycle Controller
      • Vehicle Engine Sounds
      • Coding Custom Wheeled Vehicles
      • How to enter and exit from a vehicle
    • How to use Gravity Switching
    • How to use Actions/Skill and Animation Events
      • JU TPS State Machine Behaviours
      • JUTPSActions Lib Scripting Reference
    • Camera State Trigger
    • How to use Enemies AI
    • How to use Vehicles AI
  • ⚙️Tools, Utils and Tutorials
    • General Tutorials
      • How to do Ragdoll Fall with Input Event
      • How to disable FPS Aim Mode / Scope / Iron Sight Aim
    • Auto Scripts
    • Icon Generator Tool
    • Destructible Objects System
      • Fracture Generator Tool
    • Pixel Quality Scaler
    • Camera Shake
    • Slow Motion
    • Gizmo Drawer
  • ▶️Video Tutorials
    • How to use JU TPS
  • 💬Discord Community
  • ❓Support | Help
  • 📍Roadmap
  • 🔃Change Log
  • 📦Official Addons
Powered by GitBook
On this page
  • Align in hand weapon direction
  • Item Aim Rotation Center Align
  • Aim Mode Align
  1. Game Development
  2. How to use inventory and add items

How to align weapon rotation

PreviousHow to switch between itemsNextHow to create weapons and items

Last updated 1 year ago

Align in hand weapon direction

If you align like this by default you will get a good result:

Item Aim Rotation Center Align

The Item Aim Rotation Center has the item wielding positions, and this will affect the direction of the weapon.

This rotation will not affect the trajectory of the bullet, adjust it so that the rotation is closer to aiming at the center of the camera. You may need to adjust the weapon rotation as well to get it to look good.

Aim Mode Align

If you want to use "Aim Mode" you will have to adjust the rotation of the weapon in this mode.

First, change your JU Character Controller's setting to "One Press To Aim" mode to adjust properly:

Place the Game and Scene windows side by side, press play and aim, press the Esc key and click on the weapon in the Hierarchy. Then just adjust the rotation so that the weapon's crosshairs align correctly with the center of the screen crosshair:

After aligning, just copy the rotation of the weapon, exit Play Mode and paste the rotation into Transform Component.

Is an essential component to assist with hand position and rotation during Fire Mode, it is automatically created in the setup.

🎮
JU Character Controller
Note: if you are not seeing this green crosshair on the screen activate Gizmos