You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Content/Documentation/ScriptingAPI-Documentation.md
+6-1Lines changed: 6 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -704,8 +704,9 @@ The scene holds components. Entity handles can be used to retrieve associated co
704
704
-[outer]FILTER_NAVIGATION_MESH : uint -- include navigation meshes
705
705
-[outer]FILTER_OBJECT_ALL : uint -- include all objects, meshes
706
706
-[outer]FILTER_COLLIDER : uint -- include colliders
707
+
-[outer]FILTER_RAGDOLL : uint -- include ragdoll body parts
707
708
-[outer]FILTER_ALL : uint -- include everything
708
-
- Intersects(Ray|Sphere|Capsule primitive, opt uint filterMask = ~0u, opt uint layerMask = ~0u, opt uint lod = 0) : int entity, Vector position,normal, float distance, Vector velocity, int subsetIndex, Matrix orientation, Vector uv -- intersects a primitive with the scene and returns collision parameters
709
+
- Intersects(Ray|Sphere|Capsule primitive, opt uint filterMask = ~0u, opt uint layerMask = ~0u, opt uint lod = 0) : int entity, Vector position,normal, float distance, Vector velocity, int subsetIndex, Matrix orientation, Vector uv, HumanoidBone humanoid_bone -- intersects a primitive with the scene and returns collision parameters. If humanoid_bone is not `HumanoidBone.Count` then the intersection is a ragdoll, and entity refers to the humanoid entity
709
710
- IntersectsFirst(Ray primitive, opt uint filterMask = ~0u, opt uint layerMask = ~0u, opt uint lod = 0) : bool -- intersects a primitive with the scene and returns true immediately on intersection, false if there was no intersection. This can be faster for occlusion check than regular `Intersects` that searches for closest intersection.
710
711
- Update() -- updates the scene and every entity and component inside the scene
711
712
- Clear() -- deletes every entity and component inside the scene
@@ -1408,6 +1409,8 @@ Describes a Collider object.
1408
1409
- SetLookAt(Vector value) -- Set a target lookAt position (for head an eyes movement)
1409
1410
- SetRagdollPhysicsEnabled(bool value) -- Activate dynamic ragdoll physics. Note that kinematic ragdoll physics is always active (ragdoll is animation-driven/kinematic by default).
1410
1411
- IsRagdollPhysicsEnabled() : bool
1412
+
- SetIntersectionDisabled(bool value) -- turn off intersection test for this ragdoll. This only affects direct intersection check with Scene::Intersects()
1413
+
- IsIntersectionDisabled() : bool
1411
1414
- SetRagdollFatness(float value) -- Control the overall fatness of the ragdoll body parts except head (default: 1)
1412
1415
- SetRagdollHeadSize(float value) -- Control the overall size of the ragdoll head (default: 1)
1413
1416
- GetRagdollFatness() : float
@@ -1469,6 +1472,8 @@ Describes a Collider object.
0 commit comments