• Interpolation Module - Beta testing
    41 replies, posted
inb4 WANTED gamemode.
Can you give an example of how you would apply this to, lets say for instance, some custom physics movement?
This is beautiful.
[QUOTE=Roiyaru;17221109]inb4 WANTED gamemode.[/QUOTE] what does this have to do with wanted?
[QUOTE=shitberyd;17221449]what does this have to do with wanted?[/QUOTE] Curving bullets.
Oh Deco. Why must you be so awesome and not give me some? :D
I've lost interest in this, so I thought I may as well post what I have (doesn't work due to syntax errors. Just comment out line 274 and below to use interpolation.register_method and interpolation.interpolate): [url]http://codepad.org/eU9MZViR[/url] I hope people find a use for this! I hope even more that people continue on with this.
[QUOTE=grea$emonkey;17221136]Can you give an example of how you would apply this to, lets say for instance, some custom physics movement?[/QUOTE] Again, how would I do this?
You would create three tables (x,y,z) using interpolation.create (like shown in my GUI example) and register the position of the entity in a Think hook. Then index the tables in PhysicsSimulate (or whatever) with where you want the entity to go. I'd index the table with CurTime(). Careful not to make the tables eat up all your memory!
[QUOTE=Deco Da Man;17352932]You would create three tables (x,y,z) using interpolation.create (like shown in my GUI example) and register the position of the entity in a Think hook. Then index the tables in PhysicsSimulate (or whatever) with where you want the entity to go. I'd index the table with CurTime(). Careful not to make the tables eat up all your memory![/QUOTE] It's mostly the PhysicsSimulate part I have problems with. I've never managed to get it working. Objects have appeared to instantly teleport to some random location in my past attempts. The wiki examples don't seem to work either. Although I haven't checked that section in a while.
[QUOTE=grea$emonkey;17352948]It's mostly the PhysicsSimulate part I have problems with. I've never managed to get it working. Objects have appeared to instantly teleport to some random location in my past attempts. The wiki examples don't seem to work either. Although I haven't checked that section in a while.[/QUOTE] Use LOCAL enumerations and use some of your physics knowledge to calculate the acceleration required to move the object to the desired location. If that doesn't work, try ComputeShadowControl.
[QUOTE=Deco Da Man;17353011]Use LOCAL enumerations and use some of your physics knowledge to calculate the acceleration required to move the object to the desired location. If that doesn't work, try ComputeShadowControl.[/QUOTE] That's what I used. I think very few people know how to use those properly.
Sorry, you need to Log In to post a reply to this thread.