setPhysicsCollisionFlag: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
Lou Montana (talk | contribs) m (Some wiki formatting) |
||
Line 3: | Line 3: | ||
|game1= arma3 | |game1= arma3 | ||
|version1= 2.18 | |version1= 2.18 | ||
|arg= global | |||
|eff= local | |||
|gr1= Object Manipulation | |gr1= Object Manipulation | ||
|descr= Sets physics collision flags | |descr= Sets physics collision flags for PhysX and geometry LODs. Roadway LOD interactions remain.<br> | ||
For example, if collision is disabled for a house, it is now possible to walk through its walls but still possible to walk on its floors. | |||
{{Feature|informative|Use the [[allLODs]] command to check if an object has a roadway LOD (normally, if an object is intended to be walkable, it does have a roadway LOD).}} | |||
|s1= object [[setPhysicsCollisionFlag]] value | |s1= object [[setPhysicsCollisionFlag]] value | ||
|p1= object: [[Object]] | |p1= object: [[Object]] | ||
|p2= value: [[Boolean]] - [[true]] enables collision, | |||
|p2= value: [[Boolean]] - [[true]] to enables collision, [[false]] to disables it | |||
|r1= [[Nothing]] | |r1= [[Nothing]] | ||
|seealso= [[hideObject]] [[isObjectHidden]] [[getPhysicsCollisionFlag]] [[disableCollisionWith]] [[enableCollisionWith]] | |seealso= [[hideObject]] [[isObjectHidden]] [[getPhysicsCollisionFlag]] [[disableCollisionWith]] [[enableCollisionWith]] | ||
}} | }} |
Revision as of 11:11, 15 July 2024
Description
- Description:
- Sets physics collision flags for PhysX and geometry LODs. Roadway LOD interactions remain.
For example, if collision is disabled for a house, it is now possible to walk through its walls but still possible to walk on its floors. - Groups:
- Object Manipulation
Syntax
- Syntax:
- object setPhysicsCollisionFlag value
- Parameters:
- object: Object
- value: Boolean - true to enables collision, false to disables it
- Return Value:
- Nothing
Examples
- Examples:
- Example needed
Additional Information
- See also:
- hideObject isObjectHidden getPhysicsCollisionFlag disableCollisionWith enableCollisionWith
Notes
-
Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note