VDP-noclip / noclip

NOCLIP is an experimental game in which you “noclip” the environment to solve puzzles.
3 stars 1 forks source link

add automatic switch camera when the noclip camera is near to the player #23

Closed stefanofossati closed 1 year ago

stefanofossati commented 1 year ago

Implemented feature: The player in noclip mode automatically pass in reality mode when he is near to the real body

The implementation is done with a simple sphere collider, so the ray of the collider is the variable to set in order to decide the switch distance

TizioMaurizio commented 1 year ago

It's working but noclip camera is always brought back to the same position, shouldn't it start from the player the next time you enable it again?

stefanofossati commented 1 year ago

I can put the noclip camera everyware in theory, I have done that because I don't know where the camera has to started

TizioMaurizio commented 1 year ago

it's ok, since the behaviour of noclip is not completely formalised yet this is definitely not a mistake, i pointed it out just because it behaves differently on develop and here you can see for an instant the game trying to put the noclip somewhere else before being forced to beginning point

stefanofossati commented 1 year ago

I'll do the feature in another branch after the formalization

stefanofossati commented 1 year ago

@spig95 Yes in theory, the method can be call from the outside the class, We have only to make it public in that case