#Help with gun
1 messages · Page 1 of 1 (latest)
thats probably why it didn't work 
Euclidean space is the fundamental space of geometry, intended to represent physical space. Originally, in Euclid's Elements, it was the three-dimensional space of Euclidean geometry, but in modern mathematics there are Euclidean spaces of any positive integer dimension n, which are called Euclidean n-spaces when one wants to specify their dimen...
In geometry, a three-dimensional space (3D space, 3-space or, rarely, tri-dimensional space) is a mathematical space in which three values (coordinates) are required to determine the position of a point. Most commonly, it is the three-dimensional Euclidean space, that is, the Euclidean space of dimension three, which models physical space. More ...
uhhh
then how do I do it if I can't add the vector3 😭
this is what i've tried
local Offset = Vector3.new(
math.random(-Accuracy, Accuracy),
math.random(-Accuracy, Accuracy),
math.random(-Accuracy, Accuracy)
)
local Params = RaycastParams.new()
Params.FilterType = Enum.RaycastFilterType.Exclude
Params.FilterDescendantsInstances = {Char, Gun}
local Direction = (Mouse.Hit.Position-Origin.Position).Unit
local FinalAim = (Direction+Offset).Unit
local RayCast = workspace:Raycast(Origin.Position, FinalAim*Range, Params)
what is value of accuracy
do you have position and direction backwards?
huh
do you have direction where the position should be and vica versa?
uhh no
how do you know? 
I don't 🙂
😨
well the technique looks fine, this is the naive way of doing bullet spread, not the best but it works y'know. if its not actually giving you accuracy setting then you probably did something else wrong, add prints to make sure its running etc
always read the docs https://create.roblox.com/docs/reference/engine/classes/WorldRoot#Raycast
yeah I did that before and the FinalAim gives a value near to 0 for some reason and when I add the range it gives the actual position
so it might be the way I make the bullet visible? idk
the direction vector is not a position
A unit vector is often used to represent directions, such as normal directions.
In mathematics, a unit vector in a normed vector space is a vector (often a spatial vector) of length 1. A unit vector is often denoted by a lowercase letter with a circumflex, or "hat", as in
v
^
...