generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Custom Camera Occlusion

Previous Thread :: Next Thread 
exoSentinel is not online. exoSentinel
Joined: 18 Mar 2012
Total Posts: 2795
01 Aug 2017 12:40 PM
Working on my own camera, which updates the camera CFrame on the render step event, giving it a new offset based on the characters root position and mouse inputs.

That all works fine, but players can see through walls. My first idea was to create a ray and see if there is a wall behind the player, then change the Z value of the camera offset accordingly. This was VERY inefficient to do practically every frame, but I have no idea how else to go about this.

Anyone worked with something like this before or have an idea?
Report Abuse
exoSentinel is not online. exoSentinel
Joined: 18 Mar 2012
Total Posts: 2795
01 Aug 2017 12:55 PM
b
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image