Creator Guide
English
English
  • 🚩Introduction to OVERDARE
  • 🐤Get Started
    • OVERDARE App
    • OVERDARE Studio
  • 📌Policy
    • Community Guidelines
    • UGC Creation Guidelines
    • Guidelines on the External Use of UGC
    • Logo Usage Guidelines
    • Intellectual Property Rights Policy
    • Reporting Guidelines
    • Guidelines on Disputing Suspensions and Bans
    • Creator Payout Policy
    • Monetization Guidelines
  • 🏰Studio Manual
    • Studio Interface
    • Asset Import
    • Coordinate System
    • Game Settings
    • Studio Test Play
    • World Publish
    • Collaboration
    • Script Editor
    • Align Tool
    • Animation Editor
    • Material Manager
    • Collision Groups
    • Tag Editor
    • Payout Guideline
    • Object
      • Part
      • Model
      • Character
        • Humanoid Description
      • Camera
      • Physics
      • Lighting
      • Tool
      • VFX
      • Sound
      • GUI
  • 📝Script Manual
    • Script Overview
    • Basic Guide to Lua
    • Coding Style
    • Object Reference
    • Event
    • Server-Client Communication
    • BindableEvent
    • Value Objects
    • Mobile Input Handling
    • Tween
    • Breakpoint
    • Module Script
    • TPS Strafing System
    • Saving & Loading Data
    • Unity Developer Guide
  • 📚API Reference
    • Enums
      • ActuatorRelativeTo
      • AnimationPriority
      • AspectType
      • AssetTypeVerification
      • BorderMode
      • CameraMode
      • CameraType
      • ContextActionResult
      • CoreGuiType
      • DominantAxis
      • EasingDirection
      • EasingStyle
      • ForceLimitMode
      • HttpCompression
      • HttpContentType
      • HumanoidDisplayDistanceType
      • HumanoidStateType
      • KeyCode
      • Material
      • MaterialPattern
      • NormalId
      • ParticleEmitterShape
      • ParticleEmitterShapeInOut
      • ParticleEmitterShapeStyle
      • ParticleFlipbookLayout
      • ParticleFlipbookMode
      • ParticleOrientation
      • PartType
      • PlaybackState
      • RaycastFilterType
      • RollOffMode
      • RotationType
      • UserInputState
      • UserInputType
      • VelocityConstraintMode
    • DataTypes
      • BlendSpaceSampleSata
      • BrickColor
      • CFrame
      • Color3
      • ColorSequence
      • ColorSequenceKeypoint
      • Content
      • Enum
      • EnumItem
      • NumberRange
      • NumberSequence
      • NumberSequenceKeypoint
      • OverlapParams
      • PhysicalProperties
      • Ray
      • RaycastParams
      • RaycastResult
      • ScriptConnection
      • ScriptSignal
      • TweenInfo
      • Udim
      • Udim2
      • Vector2
      • Vector3
    • Classes
      • Animation
      • AngularVelocity
      • AnimationTrack
      • Animator
      • Atmosphere
      • Attachment
      • Backpack
      • BackpackItem
      • BasePart
      • BaseScript
      • Beam
      • BindableEvent
      • BlendSpace
      • BoolValue
      • Bone
      • Camera
      • CharacterMesh
      • CollectionService
      • Constraint
      • ContextActionService
      • CoreGui
      • DataStore
      • DataModel
      • DataStoreGetOptions
      • DataStoreIncrementOptions
      • DataStoreInfo
      • DataStoreKeyPages
      • DataStoreKeyInfo
      • DataStoreService
      • DataStoreListingPages
      • DataStoreSetOptions
      • FormFactorPart
      • Frame
      • Folder
      • GlobalDataStore
      • GuiBase2d
      • GuiButton
      • GuiObject
      • HttpService
      • Humanoid
      • HumanoidDescription
      • ImageButton
      • ImageLabel
      • InputObject
      • IntValue
      • LayerCollector
      • Instance
      • Light
      • Lighting
      • LinearVelocity
      • LocalScript
      • LuaSourceContainer
      • MaterialService
      • MaterialVariant
      • MeshPart
      • Model
      • ModuleScript
      • Mouse
      • OrderedDataStore
      • Pages
      • Part
      • ParticleEmitter
      • PhysicsService
      • Player
      • PlayerGui
      • Players
      • PlayerScripts
      • PointLight
      • PVInstance
      • ReplicatedStorage
      • RemoteEvent
      • ScreenGui
      • RunService
      • Script
      • ServerStorage
      • ServiceProvider
      • Skeleton
      • ServerScriptService
      • Sound
      • SoundService
      • SoundGroup
      • SpotLight
      • SpawnLocation
      • StarterCharacterScripts
      • StarterPack
      • StarterGui
      • StarterPlayer
      • StarterPlayerScripts
      • StringValue
      • SurfaceGui
      • SurfaceGuiBase
      • Team
      • Teams
      • TextLabel
      • TextButton
      • Tool
      • Trail
      • Tween
      • TweenService
      • TweenBase
      • UIAspectRatioConstraint
      • UserGameSettings
      • UserInputService
      • UserSettings
      • VectorForce
      • Workspace
      • WrapLayer
      • WorldRoot
      • WrapTarget
  • 🅰️OVERDARE Glossary
  • 📰Release Note
Powered by GitBook
On this page
  • Overview
  • Description
  • Properties
  • X
  • Y
  • Z
  • zero
  • one
  • xAxis
  • yAxis
  • zAxis
  • Unit
  • Magnitude
  • Constructors
  • new
  • Methods
  • Dot
  • Cross
  1. API Reference
  2. DataTypes

Vector3

Overview

Description

Vector3 represents a vector used in 3D space that includes x, y, and z coordinates. It is commonly used in 3D rendering, physics calculations, and position computations.

Properties

X

number Represents the X-axis coordinate value.

Code Samples

local Vector = Vector3.new(10, 5, 8)
print(Vector.X)

Y

number Represents the Y-axis coordinate value.

Code Samples

local Vector = Vector3.new(10, 5, 8)
print(Vector.Y)

Z

number Represents the Z-axis coordinate value.

Code Samples

local Vector = Vector3.new(10, 5, 8)
print(Vector.Z)

zero

Vector3 A vector where all axis values are 0. (0, 0, 0)

Code Samples

local ZeroVector = Vector3.zero
print(ZeroVector)

one

Vector3 A vector where all axis values equal 1. (1, 1, 1)

Code Samples

local OneVector = Vector3.one
print(OneVector)

xAxis

Vector3 The unit vector defined in the direction of the X-axis.

Code Samples

local XAxis = Vector3.xAxis
print(XAxis)

yAxis

Vector3 The unit vector defined in the direction of the Y-axis.

Code Samples

local YAxis = Vector3.yAxis
print(YAxis)

zAxis

Vector3 The unit vector defined in the direction of the Z-axis.

Code Samples

local ZAxis = Vector3.zAxis
print(ZAxis)

Unit

Normalizes the vector to produce a unit vector.

Code Samples

local Vector = Vector3.new(100, 50, 200)
print(Vector.Unit)

Magnitude

The magnitude (length) of the vector

Code Samples

local Vector = Vector3.new(100, 50, 200)
print(Vector.Magnitude)

Constructors

new

Creates a Vector3 instance with specified x, y, and z coordinates.

Parameters

Parameter
Description

number x

The x-coordinate value

number y

The y-coordinate value

number z

The z-coordinate value

Return

Return
Description

Vector3

A new instance of Vector3

Code Samples

local Vector = Vector3.new(1, 2, 3)
print(Vector)

Methods

Dot

It returns the scalar inner product of the two vectors.

Parameters

Vector3 vector

Parameter for dot product.

Return

number

Result of dot product calculation.

Code Samples

Cross

It returns the vector cross product of the two vectors.

Parameters

Vector3 Parameter for cross product.

Return

Vector3

Result of cross product calculation.

Code Samples

PreviousVector2NextClasses

Last updated 25 days ago

📚