Physics properties: Difference between revisions
Jump to navigation
Jump to search
CrosRoad95 (talk | contribs) No edit summary |
CrosRoad95 (talk | contribs) |
||
Line 30: | Line 30: | ||
| stiffness|| todo || set, get || todo || todo | | stiffness|| todo || set, get || todo || todo | ||
|- | |- | ||
| size || | | size || shape|| set, get || float sizeX, float sizeY, float sizeZ || Changes size of "box" shape type. | ||
|- | |- | ||
| radius || todo || set, get || todo || todo | | radius || todo || set, get || todo || todo | ||
Line 40: | Line 40: | ||
| boundingsphere || todo || get || todo || todo | | boundingsphere || todo || get || todo || todo | ||
|- | |- | ||
| gravity || | | gravity || physics-world || set, get || float gravityX, float gravityY, float gravityZ|| Changes gravity of the simulation | ||
|- | |- | ||
| usecontinuous || | | usecontinuous || physics-world || set, get || bool bEnabled || False by default, enable detection of rigid body which happened between two simulation steps. Cause increased simulation time, prevents small shapes fly through thick surfaces | ||
|- | |- | ||
| motionthreshold || todo || set, get || todo || todo | | motionthreshold || todo || set, get || todo || todo | ||
Line 68: | Line 68: | ||
| constraintbroken || todo || set, get || todo || todo | | constraintbroken || todo || set, get || todo || todo | ||
|- | |- | ||
| triggercollisionevents || | | triggercollisionevents || physics-world || set, get || bool bEnabled = false || Cause physics world starts to trigger collision events. Don't enable if you don't use them. Can cause spam. | ||
|- | |- | ||
| triggerconstraintevents || | | triggerconstraintevents || physics-world || set, get || bool bEnabled = false || Cause physics world starts to trigger constraints events. Don't enable if you don't use them. Can cause spam. | ||
|- | |- | ||
| rigidbodya || todo || set, get || todo || todo | | rigidbodya || todo || set, get || todo || todo | ||
Line 95: | Line 95: | ||
|- | |- | ||
| issoftbody || todo || set, get || todo || todo | | issoftbody || todo || set, get || todo || todo | ||
|} | |} |
Revision as of 12:46, 9 February 2020
Physics properties
used in
Name | Support | Access | Parametrs | Description |
---|---|---|---|---|
mass | rigid-body | set, get | float mass | Changes mass of rigid body. |
position | rigid-body, static-collision | set, get | float x, float y, float z | Sets/gets position. |
position | constraint | get | float x, float y, float z | Returns avarge position of two rigids. |
rotation | rigid-body, static-collision | set, get | float rx, float ry, float rz | Sets/gets rotation. |
sleepingthresholds | rigid-body | set, get | float velocity, float angularVelocity | Sets how slow rigid body have to move, to go sleep. |
restitution | rigid-body | set, get | float value | todo |
scale | physics-shape, rigid-body, static-collision | set, get | float scaleX, float scaleY, float scaleZ | Sets/gets scale |
debugcolor | physics-shape, rigid-body, static-collision | set, get | color theColor / boolean false resets color | Changes debug color |
filtermask | todo | set, get | todo | todo |
filtergroup | todo | set, get | todo | todo |
stiffness | todo | set, get | todo | todo |
size | shape | set, get | float sizeX, float sizeY, float sizeZ | Changes size of "box" shape type. |
radius | todo | set, get | todo | todo |
height | todo | set, get | todo | todo |
boundingbox | todo | get | todo | todo |
boundingsphere | todo | get | todo | todo |
gravity | physics-world | set, get | float gravityX, float gravityY, float gravityZ | Changes gravity of the simulation |
usecontinuous | physics-world | set, get | bool bEnabled | False by default, enable detection of rigid body which happened between two simulation steps. Cause increased simulation time, prevents small shapes fly through thick surfaces |
motionthreshold | todo | set, get | todo | todo |
sweptsphereradius | todo | set, get | todo | todo |
pivota | todo | set, get | todo | todo |
pivotb | todo | set, get | todo | todo |
lowerlinlimit | todo | set, get | todo | todo |
upperlinlimit | todo | set, get | todo | todo |
loweranglimit | todo | set, get | todo | todo |
upperanglimit | todo | set, get | todo | todo |
breakingimpulsethreshold | todo | set, get | todo | todo |
appliedimpulse | todo | set, get | todo | todo |
jointfeedback | todo | set, get | todo | todo |
constraintbroken | todo | set, get | todo | todo |
triggercollisionevents | physics-world | set, get | bool bEnabled = false | Cause physics world starts to trigger collision events. Don't enable if you don't use them. Can cause spam. |
triggerconstraintevents | physics-world | set, get | bool bEnabled = false | Cause physics world starts to trigger constraints events. Don't enable if you don't use them. Can cause spam. |
rigidbodya | todo | set, get | todo | todo |
rigidbodyb | todo | set, get | todo | todo |
sleep | todo | set, get | todo | todo |
wantssleeping | todo | set, get | todo | todo |
iscompound | todo | set, get | todo | todo |
iscocave | todo | set, get | todo | todo |
isconvex | todo | set, get | todo | todo |
isconvex2d | todo | set, get | todo | todo |
isinfinite | todo | set, get | todo | todo |
isnonmoving | todo | set, get | todo | todo |
ispolyhedral | todo | set, get | todo | todo |
issoftbody | todo | set, get | todo | todo |