Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / AGK has "cloth physic" ? and how can I create it ?

Author
Message
GolWofael
8
Years of Service
User Offline
Joined: 15th Mar 2016
Location:
Posted: 29th Mar 2016 07:54
AGK has "cloth physic" ? and how can I create it ?
GolWofael
8
Years of Service
User Offline
Joined: 15th Mar 2016
Location:
Posted: 29th Mar 2016 14:39 Edited at: 29th Mar 2016 14:45
This video to give an idea for what I talking about ...
https://www.youtube.com/watch?v=fkKr4q9W8oM
Stab in the Dark software
Valued Member
21
Years of Service
User Offline
Joined: 12th Dec 2002
Playing: Badges, I don't need no stinkin badges
Posted: 29th Mar 2016 14:47
It does not have cloth physics.
The coffee is lovely dark and deep,and I have code to write before I sleep.
GolWofael
8
Years of Service
User Offline
Joined: 15th Mar 2016
Location:
Posted: 29th Mar 2016 18:06
hakimfullmetal
9
Years of Service
User Offline
Joined: 17th Feb 2015
Location:
Posted: 1st Apr 2016 07:56 Edited at: 1st Apr 2016 09:24
Hello Golwafael

I still had an old cloth physic codes from DPRo, which alters vertex within a mesh to simulate cloth.
I forgot who's the author though, sorry.
You will have to alter the commands it to make it compatible with AGK. Sorry I didn't convert it for you.
You can use AppGameKit memblock commands that alters vertexes within a mesh to replace the DBPro vertex-altering commands

Here's the flag physic demo. It's a cloth flag waving in the wind.

Put this before the main loop



Put this in the main loop


Put these after the main loop. these are the functions:




WOops just realized that AppGameKit does not have commands to unlock/lock vertex data directly.
So probably had to create/recreate the mesh-memblock every frame, which sounds grim
Tough luck. sorry
GolWofael
8
Years of Service
User Offline
Joined: 15th Mar 2016
Location:
Posted: 2nd Apr 2016 22:12 Edited at: 2nd Apr 2016 22:12
Thank you very much "hakimfullmetal "... I will try

Login to post a reply

Server time is: 2024-09-29 13:24:44
Your offset time is: 2024-09-29 13:24:44