1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-26 05:02:18 +00:00
freebsd-ports/games/rigsofrods/files/RoR.sh.in
Dmitry Marakasov ac6286193f Rigs of Rods (also known as RoR), is a truck, car, airplane and
boat simulator. You can drive, fly or sail in total freedom in an
open environment. What makes RoR different to most simulators is
its unique soft-body physics: vehicles chassis and wheels are
simulated in real-time as flexible objects, giving the simulation
an extremely accurate behavior, while allowing the vehicles to be
simply specified by their structural composition, as a network of
interconnected nodes (forming the chassis and the wheels). Crashing
into walls or terrain can permanently deform a vehicle in a realistic
manner. In addition to its unique soft-body physics, RoR also
features an advanced flight model based on blade element theory,
allowing the accurate simulation of any airplane, base on their
physical dimensions and wing airfoils. It also features an accurate
buoyancy model based on elemental pressure gradients, enabling boats
with complex hulls to move realistically in the swell.

WWW: http://www.rigsofrods.com/
2009-04-09 22:16:47 +00:00

20 lines
469 B
Bash

#!/bin/sh
RORDIR=%%PREFIX%%/lib/rigsofrods
DOTDIR=$HOME/.RigsOfRods
if [ ! -e "$DOTDIR" ]; then
echo "Populating $DOTDIR..."
cd %%DATADIR%%/skeleton && find . -type d -exec mkdir -p "$DOTDIR/{}" \;
cd %%DATADIR%%/skeleton && find . -type f -exec cp -n {} "$DOTDIR/{}" \;
fi
LD_LIBRARY_PATH=$RORDIR:$LD_LIBRARY_PATH
export LD_LIBRARY_PATH
cd $RORDIR
%%PREFIX%%/libexec/rigsofrods/RoR "$@"
# re-enable key repeat (which is disabled by RoR for some reason)
xset r