LinearVelocity

LinearVelocity : Constraint

Overview

๊ฐ์ฒด๋ฅผ ์ผ์ •ํ•œ ์ง์„  ์†๋„๋กœ ์ด๋™์‹œํ‚ค๊ธฐ ์œ„ํ•œ ๋ฌผ๋ฆฌ ์ œ์•ฝ(Constraint) ์ธ์Šคํ„ด์Šค์ž…๋‹ˆ๋‹ค.

RelativeTo ์†์„ฑ์„ World ๋˜๋Š” Attachment ์ค‘ ์–ด๋””๋กœ ์„ค์ •ํ•˜๋А๋ƒ์— ๋”ฐ๋ผ, ํž˜์ด ์ ์šฉ๋˜๋Š” ๊ธฐ์ค€์ด ๋‹ฌ๋ผ์ง‘๋‹ˆ๋‹ค.

Properties

ForceLimitMode

Enum.ForceLimitMode

Determines the condition under which the Force Limit is applied to the constraint.

  • Magnitude: Restricts the total magnitude of the applied force.

  • PerAxis: Restricts the force magnitude separately for each axis.

Code Samples

ForceLimitsEnabled

bool

ํž˜์„ ์ œํ•œํ• ์ง€ ์—ฌ๋ถ€๋ฅผ ๊ฒฐ์ •ํ•ฉ๋‹ˆ๋‹ค.

์ด ์†์„ฑ์„ ํ™œ์„ฑํ™”ํ•˜๋ฉด MaxForce์— ๋”ฐ๋ผ ํž˜์˜ ํฌ๊ธฐ๊ฐ€ ์ œํ•œ๋˜๋ฉฐ, ๋น„ํ™œ์„ฑํ™”ํ•˜๋ฉด ๋ฌผ๋ฆฌ ์—”์ง„์€ ๋ชฉํ‘œ ์†๋„์— ๋งž์ถฐํฐ ํž˜์„ ์ž์œ ๋กญ๊ฒŒ ์ ์šฉํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

Code Samples

LineDirection

Vector3

VelocityConstraintMode๊ฐ€ Line์ผ ๋•Œ, ์„ ํ˜• ๋ฐฉํ–ฅ์œผ๋กœ ์†๋„๋ฅผ ์ œํ•œํ•˜๋Š” ์ •๊ทœํ™”๋œ Vector3 ๋ฐฉํ–ฅ์ž…๋‹ˆ๋‹ค.

Code Samples

LineVelocity

number

VelocityConstraintMode๊ฐ€ Line์ผ ๋•Œ, ์„ ํ˜•์œผ๋กœ ์›€์ง์ด๋Š” ๋ฐฉํ–ฅ์˜ ์†๋„๋ฅผ ์„ค์ •ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

Code Samples

MaxAxesForce

Vector3

ํ˜„์žฌ ์ง€์›๋˜์ง€ ์•Š์Šต๋‹ˆ๋‹ค.

Code Samples

MaxForce

number

ForceLimitsEnabled๊ฐ€ true์ผ ๋•Œ, ์ ์šฉํ•  ์ˆ˜ ์žˆ๋Š” ํž˜์˜ ์ตœ๋Œ€ ํฌ๊ธฐ๋ฅผ ์„ค์ •ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

Code Samples

PlaneVelocity

Vector2

VelocityConstraintMode๊ฐ€ Plane์ผ ๋•Œ, ํ‰๋ฉด ์œ„์—์„œ ์›€์ง์ด๋Š” ๋‘ ๋ฐฉํ–ฅ(X, Y)์— ๋Œ€ํ•œ ์†๋„๋ฅผ ์„ค์ •ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

Code Samples

PrimaryTangentAxis

Vector3

ํ˜„์žฌ ์ง€์›๋˜์ง€ ์•Š์Šต๋‹ˆ๋‹ค.

Code Samples

RelativeTo

Enum.ActuatorRelativeTo

ํž˜์ด ์ ์šฉ๋˜๋Š” ๊ธฐ์ค€ ์ขŒํ‘œ๊ณ„๋ฅผ ์„ค์ •ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

Code Samples

SecondaryTangentAxis

Vector3

ํ˜„์žฌ ์ง€์›๋˜์ง€ ์•Š์Šต๋‹ˆ๋‹ค.

Code Samples

VectorVelocity

Vector3

VelocityConstraintMode๊ฐ€ Vector์ผ ๋•Œ, Vector์œผ๋กœ ์›€์ง์ด๋Š” ๋ฐฉํ–ฅ์˜ ์†๋„๋ฅผ ์„ค์ •ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

Code Samples

VelocityConstraintMode

Enum.VelocityConstranumberMode

์–ด๋–ค ๋ฐฉ์‹์œผ๋กœ ์†๋„๋ฅผ ์ œํ•œํ• ์ง€ ์„ค์ •ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

  • Line: ์„ ํ˜•์œผ๋กœ ์ด๋™

  • Plane: ์ง€์ •๋œ ํ‰๋ฉด ์•ˆ์—์„œ ์ด๋™

  • Vector: ๋ฒกํ„ฐ3 ๋ฐฉํ–ฅ์œผ๋กœ ์ด๋™ (๊ธฐ๋ณธ ์„ค์ •)

Code Samples

Methods

Events

See also

๋ฌผ๋ฆฌ

Last updated