FactorPhysics
μλ κ°μ²΄μ λν΄ λ¬Όλ¦¬ κ΄λ ¨ μ€μ μ μ²λ¦¬νλ κ°μ²΄μμ.
μμ±
Velocity
νμ¬ λ¬Όλ¦¬ μλμμ.
-- μν --
print(Workspace.Cube.Physics.Velocity)
bOverrideMass
λΆνΌλ‘ μ§λμ μλ κ³μ°ν΄μ.
-- μν --
Workspace.Cube.Physics.bOverrideMass = true
Mass
μ§λ κ°μ΄μμ.
-- μν --
Workspace.Cube.Physics.MassInKg = 5000
LinearDamping
μ ν κ°μ κ°μ΄μμ.
-- μν --
Workspace.Cube.Physics.LinearDamping = 0.1
AngularDamping
νμ κ°μ κ°μ΄μμ.
-- μν --
Workspace.Cube.Physics.AngularDamping = 0.1
Friction
λ§μ°°λ ₯ κ°μ΄μμ. μ€λΈμ νΈμ νλ©΄ 물리 λ§μ°°λ ₯μ μ€μ ν μ μμ΄μ. μΌμνμμ κ³΅μ΄ λ―Έλλ¬μ§λ μ λλ₯Ό μ€μ ν μ μλ κ°μ΄μμ(0 ~ 1μ λ²μ). 0μ κ°κΉμΈμλ‘ μ λ―Έλλ¬μ Έμ.
-- μν --
Workspace.Cube.Physics.Friction = 0.1
Restitution
νμ± κ°μ΄μμ. μ€λΈμ νΈμ νμ± κ°μ μ€μ ν μ μμ΄μ. κ³΅μ΄ ν±ν±λ³Ό μ²λΌ λͺλ² νκΈ°λ€κ° λ©μΆλλ‘ νλ μ€μ κ°μ΄μμ(0 ~ 1μ λ²μ). 1μ κ°κΉμΈμλ‘ νμ±μ΄ λ μ»€μ Έμ.
-- μν --
Workspace.Cube.Physics.Restitution = 0.1
Density
λ°λ κ°μ΄μμ. μ€λΈμ νΈμ λ°λ κ°μ μ€μ ν μ μμ΄μ(0 ~ 1μ λ²μ). 1μ κ°κΉμΈμλ‘ λ¬Όμ²΄κ° λ λ¨λ¨ν΄μ§κ³ 무거μμ Έμ.
-- μν --
Workspace.Cube.Physics.Density = 0.1
ν¨μ
void AddForce(Vector Force)
κ°μ²΄μ 물리 νμ μΆκ°ν μ μμ΄μ. (νμ κ°ν Vector κ°)
-- μν --
local toy = Script.Parent
local force = Vector.new(50000, 0, 0)
target.Physics:AddForce(force) --forceκ° λ§νΌ μ€λΈμ νΈλ₯Ό λ°μ΄μ. (μ€λΈμ νΈμ 물리 νλ‘νΌν°κ° μΌμ Έμμ΄μΌ ν΄μ.)
void ZeroVelocity()
κ°μ²΄μ 물리 벑ν°λ₯Ό 0μΌλ‘ μ΄κΈ°νν΄μ.
-- μν --
cube.Physics:ZeroVelocity()
Last updated
Was this helpful?