Updated Text Script.md (markdown)
commited
commit
9aa28900e6cd38a6a92ba57b73f4aa880dad8de6
... | ... | @@ -185,8 +185,38 @@ Sound.VolumePitch(num Channel, num Volume, num Pitch); |
185 | 185 | |
186 | 186 | ### Physics |
187 | 187 | **____________________________________** |
188 | ```- |
|
189 | //Is this thing really that underrated that no one still made a thing about it (sigh) :P |
|
188 | ```coffeescript |
|
189 | Physics.AddForce(obj Object, vec Force, vec applyAt, vec Torque); |
|
190 | ||
191 | vec playerVelocity = Physics.GetVelocity(obj Object).velocity; |
|
192 | vec playerVelocity = Physics.GetVelocity(obj Object).spin; |
|
193 | ||
194 | Physics.SetVelocity(obj Object, vec Force, vec Spin); |
|
195 | ||
196 | Physics.SetLocked(obj Object, vec Position, vec Rotation); |
|
197 | ||
198 | Physics.SetMass(obj Object, num Mass); |
|
199 | ||
200 | Physics.SetFriction(obj Object, num Friction); |
|
201 | ||
202 | Physics.SetBounciness(obj Object, num Bounciness); |
|
203 | ||
204 | Physics.SetGravity(vec Gravity); |
|
205 | ||
206 | const constraint = Physics.AddConstraint(obj Base, obj Part, vec Pivot).constraint; |
|
207 | ||
208 | Physics.LinearLimits(const Constraint, vec Lower, vec Upper); |
|
209 | ||
210 | Physics.AngularLimits(const Constraint, vec Lower, vec Upper); |
|
211 | ||
212 | Physics.LinearSpring(const Constraint, vec Stiffness, vec Damping); |
|
213 | ||
214 | Physics.AngularSpring(const Constraint, vec Stiffness, vec Damping); |
|
215 | ||
216 | Physics.LinearMotor(const Constraint, vec Speed, vec Force); |
|
217 | ||
218 | Physics.AngularMotor(const Constraint, vec Speed, vec Force); |
|
219 | ||
190 | 220 | ``` |
191 | 221 | |
192 | 222 |