ClirexJoin Date: 2012-06-22 Post Count: 2721 |
I'm trying to recreate it but I don't know how... |
|
Hedr0nJoin Date: 2016-01-05 Post Count: 1524 |
Changes the camera type |
|
ClirexJoin Date: 2012-06-22 Post Count: 2721 |
can you explain more please |
|
ClirexJoin Date: 2012-06-22 Post Count: 2721 |
help plox |
|
|
KurokkuJoin Date: 2015-08-01 Post Count: 4699 |
Doesn't it just have a zoom in effect but the camera stays outside? If that makes any sense, and I'm pretty sure it would be hard to remake due to shift lock is part of the core gui |
|
ClirexJoin Date: 2012-06-22 Post Count: 2721 |
how does roblox's corescripts that we can rewrite do it basically |
|
adam1717Join Date: 2011-05-07 Post Count: 961 |
Find it on GitHub.
|
|
ClirexJoin Date: 2012-06-22 Post Count: 2721 |
i looked through the scripts i didnt understand how it works
can someone help |
|
0xBAADF00DForum ModeratorJoin Date: 2015-11-18 Post Count: 501 |
Try playtesting an empty baseplate in Studio. You can find the camera scripts under your PlayerScripts object in your player. |
|
ClirexJoin Date: 2012-06-22 Post Count: 2721 |
@0xBAADF00D i already did that it didnt make any sense
surely a mod would have better advice than that... |
|
|
LightlimnJoin Date: 2010-05-09 Post Count: 4079 |
learn to script and stop scamming |
|
Hedr0nJoin Date: 2016-01-05 Post Count: 1524 |
This kid scams? I worked for him for a while but backed out |
|
ClirexJoin Date: 2012-06-22 Post Count: 2721 |
yes i scammed builderman |
|
ClirexJoin Date: 2012-06-22 Post Count: 2721 |
foreverpower is the real scammer i just didnt reply to him because i figured it would be a waste of time
i hired him to fix some problems in my game but he didnt pull off his end of the deal, and refused to do work so i kicked him from the group
not a scammer |
|
duckwitJoin Date: 2008-08-08 Post Count: 1310 |
The camera is positioned at a constant offset relative to the torso of the player. The y-axis rotation of the camera determines the y-axis orientation of the player. In addition to this, detecting and resolving ray cast intersections projected from the torso towards the camera's position can prevent rendering objects that are between the camera and the player.
Zooming in and out adjusts the z-component of the offset relative to the torso.
You can use LocalTransparencyModifier to lower the opacity of limbs when the camera is close to the character. |
|
Hedr0nJoin Date: 2016-01-05 Post Count: 1524 |
'The y-axis rotation of the camera determines the y-axis orientation of the player. '
It's too early in the morning to hear this.
Op if you can't figure out how shift lock works I suggest not making a entire game because you'll soon find out, shift lock is not the hardest thing you'll have to deal when making a game as advanced as you want. |
|
duckwitJoin Date: 2008-08-08 Post Count: 1310 |
@checkplate Let me rephrase that as 'the player faces in the direction that the camera faces, except the player does not rotate up and down'.
Early in the morning for you, late afternoon for me.
@Clirex Don't be discouraged. This is a spatial/geometric problem that is very easy to understand given familiarity with the mathematical constructs of vectors and matrices (CFrame is a combination of these), but difficult otherwise. There are many awesome game ideas that can be implemented that don't require sophisticated spatial calculations. Shift lock is not the trickiest spatial problem, but there are certainly many interesting things you can do that don't depend on this. If you are interested, ask a math teacher at school about vectors and they may be able to help you understand 3-dimensional space calculations better!
|
|
ClirexJoin Date: 2012-06-22 Post Count: 2721 |
im not discouraged, im used to the salty scripters forum
checkplate (chimmmihc) i know so its whatever
i asked a simple question and the scripters forum flamed me
thanks for explaining it further |
|
ClirexJoin Date: 2012-06-22 Post Count: 2721 |
actually nevermind, just read your reply duckwit and that is completely different than what i asked
i have already created all of that stuff
i just want to know how to create the character turning similar or exact to roblox's default |
|
Hedr0nJoin Date: 2016-01-05 Post Count: 1524 |
Duckwit solution and is stupid not because of the rotate up and down but player movement would have to compensate for the offset since movement would be based around the camera.
set the cameras coordinate frame to
local rcf = Character.HumanoidRootPart.CFram
rcf * rcf.lookVector * CFrame.new(0, 0, Offset) * CFrame.Angles(Angle, 0, 0) |
|
ClirexJoin Date: 2012-06-22 Post Count: 2721 |
did it myself, a little bit of help from chim
local Root = Char:FindFirstChild(CharacterSubject)
while Root and Lock and RunService.RenderStepped:wait() do
local x, y, z, _, r01, _, _, r11, _, _, r21 = Root.CFrame:components()
local _, _, _, r00, _, r02, r10, _, r12, r20, _, r22 = Mouse.Hit:components()
Root.CFrame = CFrame.new(x, y, z, r00, r01, r02, r10, r11, r12, r20, r21, r22)
end |
|
duckwitJoin Date: 2008-08-08 Post Count: 1310 |
@Clirex You could save some time when you next ask a question by providing more details. When checkplate replied "Changes the camera type", and you responded "explain more please" it seemed that you didn't understand the dynamics of a third person camera. My mistake, but it's difficult to help people when they ask obtuse, open-ended questions like "how does x work?" - the depth and relevance of answers that you receive will depend on how well you equip the answerer with details of your specific problem. |
|
ClirexJoin Date: 2012-06-22 Post Count: 2721 |
@duckwit if you had read the title of the thread, it clearly says "shift lock movement" not "third person camera" |
|