#Need help on a very hard problem

1 messages · Page 1 of 1 (latest)

carmine fable
#

I'm trying to make a camera system for a game, [not fnaf game even tho im making a fnaf game] I want the camera to move around to check out the full area, but I want to lock it to a certain direction where they can look around but only around that area, so that way the cam doesn't go through walls, help me friends...

#

Need help on a very hard problem

glad birch
#

Only 2 ways to do this: RRS and RC car

carmine fable
glad birch
#

You can use a overlap sphere to check when it hits something, and stop its movement

carmine fable
#

Nah that's gonna be buggy, and a hole heep of trouble, I just want to clamp it's rotation

#

I've done it before on an alt but I can't find the room soo

glad birch
#

I don’t think it’d be buggy if you did it right.

#

What exactly are you trying to replicate or make

carmine fable
#

You know how cctv cams move? I won't it to move like them, but I don't want them to go through walls

#

Since they'll be on walls

glad birch
#

You could just animate it right?

carmine fable
#

All I can give rn, is the games like re:r

glad birch
#

Idk what that is

carmine fable
#

Resident evil: resistance

glad birch
#

Could you use a rotator but keep it within a set amount of range for rotation?

carmine fable
glad birch
#

Are you going to be using 4 buttons, up down left right?

carmine fable
#

Sorta, more or less

glad birch
#

What do you plan on using

carmine fable
#

Basically idk, still working on the style

glad birch
#

I have an idea of how to make this, but it would require 4 buttons of movement

#

So I don’t wanna suggest it if you aren’t going to use that method because it wouldn’t work

carmine fable
#

I think I already know, not sure yet but let's go Hypothetical, let's say I am using buttons

glad birch
#

I would think to use 2 rotators, one connected to the other,
Button left rotates rotator on horizontal axis in reverse
Button right rotates rotator on horizontal axis forward
Button up rotates rotator on vertical axis forward (connected to horizontal axis rotator)
Button down rotates rotator on vertical axis in reverse

carmine fable
#

And how will I lock the rotation?

glad birch
#

While rotating, constantly check if rotation progress is lower than like -90 or higher than like 90 and if true don’t rotate

#

You could also use a clamp

#

Maybe

#

I’d have to experiment

carmine fable
#

Kk then

#

Not what I had in mind so I'll test it out, thanks for the help!

glad birch
#

👍

sleek crescent
#

quats RRtroll

misty arrow
#

If it’s not then stop it