How I can make an camera collision?

0

hello guys, I have an question, how I can make an camera collision with script canvas ? this is possible ? https://youtu.be/HMpJOfvQEJg

feita há 4 anos196 visualizações
13 Respostas
0
Resposta aceita

Hi @REDACTEDUSER

Sorry for delay , But these days I am really busy because schools have become online/virtual, my work has increased a lot.

This is a raycast answer script canvas graph zip file for your request 👇 CameraCollisionAhmadKarami.zip|attachment (30.9 KB)

Please see this video , how to use my graph 👇 https://www.youtube.com/watch?v=h128qaGb2fI

I hope it is useful for you

respondido há 4 anos
profile picture
ESPECIALISTA
avaliado há um mês
0

Hi @REDACTEDUSER Welcome to Amazon Lumberyard 🌹 Your work is great , I tested for both PhysX & CryPhysics , result is nothing , I think , It is not possible for Physics Lib in Script Canvas 1.25 😊

respondido há 4 anos
0

I tested this question in Starter Game LY 1.25 , The camera player goes into the objects of the collider 😉 Like your game where the camera goes into objects ✅

respondido há 4 anos
0

Thank u dude,I use the new version 1.26.0 in start game too, I wii try, make anyting to this working, so thank you again

respondido há 4 anos
0

One way to do this is shoot a ray between your camera and player. And if there's anything in the way of the ray then interpolate the camera toward the player until there isn't.

respondido há 4 anos
0

u can show me how I can make this ?

respondido há 4 anos
0

@REDACTEDUSER soon I upload a video help , of course my graph is not complete 😊

respondido há 4 anos
0

@REDACTEDUSER

You should be able to add a collider to your camera entity. If your buildings are using PhysX colliders, add an appropriate PhysX collider to the camera ( I'm assuming your character is using the character or rigid body colliders). If the buildings use legacy physics, attach a legacy collider to the camera entity.

You can also use collision groups with PhysX to make the camera collide with buildings, but not say, light posts.

respondido há 4 anos
0

If there's anything I've learned about game development it's that it's ALL ABOUT THE RAYS.

respondido há 4 anos
0

thank you @REDACTEDUSER

respondido há 4 anos
0

Hi Gents, don't forget to mark an issue as "resolved/solved" when someone offers a solution. This will help community members get the new badge for providing solutions!

respondido há 4 anos
0

@REDACTEDUSER

respondido há 4 anos
0

@REDACTEDUSER

[quote="lmbr_Saulty, post:14, topic:9560, full:true"] Hi Gents, don’t forget to mark an issue as “resolved/solved” when someone offers a solution. This will help community members get the new badge for providing solutions! [/quote]

respondido há 4 anos

Esta postagem está fechada: a adição de novas respostas, comentários e votos está desativada.