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