Physics

Physics

๋ฌผ๋ฆฌ ๊ด€๋ จ ์„ค์ •์„ ์ฒ˜๋ฆฌํ•˜๋Š” ๊ฐ์ฒด์—์š”.

ํ•จ์ˆ˜

void AddForce(StaticMeshObject Mesh, Vector Force)

ํŠน์ • ์Šคํ…Œํ‹ฑ ๋ฉ”์‹œ์— ํž˜์„ ๊ฐ€ํ•  ์ˆ˜ ์žˆ์–ด์š”(ํž˜์„ ๊ฐ€ ํ•  ์˜ค๋ธŒ์ ํŠธ, ๊ฐ€ ํ•  ํž˜) (deprecated) Object.Physics:AddForce(force)๋ฅผ ์‚ฌ์šฉํ•ด์ฃผ์„ธ์š”

-- ์ƒ˜ํ”Œ --

local target = Workspace.Cube
local force = Vector.new(50000, 0, 0)

Physics:AddForce(target, force) --force๊ฐ’ ๋งŒํผ ์˜ค๋ธŒ์ ํŠธ๋ฅผ ๋ฐ€์–ด์š”. (์˜ค๋ธŒ์ ํŠธ์˜ ๋ฌผ๋ฆฌ ํ”„๋กœํผํ‹ฐ๊ฐ€ ์ผœ์ ธ์žˆ์–ด์•ผ ํ•ด์š”.)

์‚ฌ์šฉ ๊ฐ€๋Šฅํ•œ ๋ถ€๋ชจ ์˜ค๋ธŒ์ ํŠธ ๊ธฐ๋Šฅ๋“ค

์†์„ฑ

์ด๋ฆ„

์„ค๋ช…

์ด๋ฒคํŠธ

์ด๋ฆ„

์„ค๋ช…

ํ•จ์ˆ˜

์ด๋ฆ„

์„ค๋ช…

์ค‘๋ ฅ ๊ฐ’์„ ์„ค์ • ํ•  ์ˆ˜ ์žˆ์–ด์š”. (์„ค์ •ํ•  ์ค‘๋ ฅ ๊ฐ’)

Last updated