Collider
Defines a collision shape independently of the rendered mesh.
- Creatable
Instance.new("Collider")- Inherits
- Instance
- Replication
- Standard
Behavior
Collider defines a collision shape independently of the rendered mesh.
Summary
Whether this collider is enabled.
The collision shape transform relative to its parent.
The boundary shape used for this region.
The dimensions of this region, in studs.
Whether the collider detects overlap without a solid collision response.
Returns this instance if it is an ExecutionGroup.
Properties
Enabled
Collider.Enabled: boolean = trueWhether this collider is enabled.
Offset
Collider.Offset: CFrame = CFrame.new(0, 0, 0)The collision shape transform relative to its parent.
Shape
Collider.Shape: Enum.ColliderShape = Enum.ColliderShape.BoxThe boundary shape used for this region.
Size
Collider.Size: Vector3 = Vector3.new(4, 1, 2)The dimensions of this region, in studs.
Trigger
Collider.Trigger: boolean = falseWhether the collider detects overlap without a solid collision response.
Methods
GetExecutionGroup
Collider:GetExecutionGroup(): ExecutionGroup?Returns this instance if it is an ExecutionGroup. Otherwise returns the nearest ancestor ExecutionGroup, or nil when no group contains the instance.
Inherited members
- Properties
- ArchivableClassNameNameParent
- Methods
- AddComponent()AddTag()ClearAllChildren()ClearTags()Clone()Destroy()FindFirstAncestor()FindFirstAncestorOfClass()FindFirstAncestorWhichIsA()FindFirstChild()FindFirstChildOfClass()FindFirstChildWhichIsA()FindFirstDescendant()GetAttribute()GetAttributeChangedSignal()GetAttributes()GetChildren()GetComponent()GetComponentChangedSignal()GetComponents()GetDebugId()GetDescendants()GetFullName()GetPropertyChangedSignal()GetReferencing()GetTags()HasComponent()HasTag()IsA()IsAncestorOf()IsDescendantOf()RemoveComponent()RemoveTag()SetAttribute()WaitForChild()
- Events
- AncestryChangedAttributeChangedChangedChildAddedChildRemovedDescendantAddedDescendantRemovingDestroying