Stingray Forum (Read Only)
Welcome to Autodesk’s Stingray Forums. Share your knowledge, ask questions, and explore popular Stingray topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Character pathfinding

7 REPLIES 7
Reply
Message 1 of 8
water.f7
302 Views, 7 Replies

Character pathfinding

Hi,

I view tutorial about AI navigation in here  http://area.autodesk.com/learning/series/setting-up-basic-navigation-ai-in-stingray everything is done.

I have done to make a unit move from point A to point B when press space

But when i want Character in basic template automatic move from point A to point B when press space it not  working.

How to do this?

7 REPLIES 7
Message 2 of 8
swayamBH2GE
in reply to: water.f7

Hi,

This is because in character template the character is controlled through the script which is written in Lua.  So if you want to move character from A to B you need to modify in the script. Hope, I have answered your question.

Thank you

Tags (1)
Message 3 of 8
water.f7
in reply to: swayamBH2GE

Hi swayamBH2GE

I know that character is controlled through the script which is written in player.lua and i was disable by UnitController:set_enabled = false in code before set Set NavBot Destination

Message 4 of 8
swayamBH2GE
in reply to: water.f7

Hi,

Can you attach the screenshots? I will be able to understand your problem properly

Thank you

Message 5 of 8
water.f7
in reply to: swayamBH2GE

I add two line in end of function player.lua/Player.update to disable

 

function Player.update(self, dt)
--some code ....

local walkcam_controller = UnitController.manager:get(self.land_character)
walkcam_controller:set_enabled(false)

end

 

Message 6 of 8
water.f7
in reply to: water.f7

this is my test project

press f2 to spawn land camera

press 1 to move unit

press 2 to move charater (not working)

press 3 to set charater pose

Message 7 of 8
water.f7
in reply to: water.f7

I'm found the problem.It seem tobe have a different between spawn unit and normal unitCapture.jpg

 

Message 8 of 8
water.f7
in reply to: water.f7

 

 

 

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report