• Piloting an entity like a spacecraft
    2 replies, posted
Currently have the following laid out-- it's very specific. I can create a vehicle entity (in this case, a chair) in hammer. That hammer is labelled so it can be picked up by my lua code. I have a separate entity, which for the time being is just a cargo physics prop. This is also marked in a way that can be picked up by my lua code. Now here's the question- I'd like to pilot the physics prop sort of like a spaceship. There doesn't really seem to be any documentation I can find to point me in the right direction of piloting a prop in this manner. There's Entity Driving - [url]https://wiki.garrysmod.com/page/Entity_Driving[/url] But I think that is specifically for no-clip like purposes. I need my prop entity to retain it's physical qualities while it's flying around. Now I don't exactly need Newtonian physics here, just something that's passable for dogfights and such. Could anyone help to point me in the right direction? I know that I'll need to alter the player's camera view upon sitting in the seat, I've been able to do this but it's not exactly a 'free look' type deal. Thanks! -Mitch-
Entity driving isn't just for noclip, it can be used for anything, and the physics can be kept with it just fine.
[QUOTE=MPan1;50547122]Entity driving isn't just for noclip, it can be used for anything, and the physics can be kept with it just fine.[/QUOTE] Okay, that's reassuring. Is there any documentation or example code beyond the included noclip mode that I could look at? I'm trying to learn. Thanks!
Sorry, you need to Log In to post a reply to this thread.