Powerlang Docs
  • Welcome!
  • Beginner's Guide
    • Syntax
    • Directives
    • Environment
    • Special types
    • Functions
    • Tables
    • Loops
    • Conditions
    • Events
    • Libraries
    • Comments and Flags
  • Creating a Game
    • Project Introduction: Potato Rush
    • Creating the main game loop
    • Creating potatoes
    • Keeping track of score
  • Libraries
    • Special Types
      • BrickColor
      • CFrame
      • Color3
      • Instance
      • NumberRange
      • UDim2
      • Vector2
      • Vector3
    • Services
      • DataStore
      • Debris
      • Mouse
      • Pathfinding
      • PhysicsService
      • Players
      • Ray
      • TweenService
    • compiler
    • math
    • os
    • string
    • table
    • retrostudio
  • Advanced Information
    • Instance Functions
    • Global Functions
    • Multithreading
    • Compiler Library
Powered by GitBook
On this page
  1. Libraries
  2. Services

PhysicsService

The PhysicsService service is responsible for managing collision groups.

Function

Description

RegisterCollisionGroup(GroupName: string, Unregister: bool): nil

Registers a new collision group in the physics service. Requires 2 arguments: GroupName (string) representing the name of the collision group and Unregister (boolean) indicating whether to unregister the group. Returns nil.

SetCollidable(GroupName1: string, GroupName2: string, Collidable: bool): nil

Sets the collidable status between two collision groups. Requires 3 arguments: GroupName1 (string), GroupName2 (string), and Collidable (boolean) indicating whether the groups should be collidable with each other. Returns nil.

PreviousPathfindingNextPlayers

Last updated 7 months ago